Question: Trying to find out where default value for field with id **startDate** is populated.
Its "24/04/2008" in rendered window on bottom right, however cannot see where it was set in code.

```
// this methid is called each time the selected period of the chart is changed
function handleZoom(event) {
    var startDate = event.startDate;
    var endDate = event.endDate;
    document.getElementById("startDate").value = AmCharts.formatDate(startDate, "DD/MM/YYYY");
    document.getElementById("endDate").value = AmCharts.formatDate(endDate, "DD/MM/YYYY");
// as we also want to change graph type depending on the selected period, we call this method
changeGraphType(event);
}
// this method is called when user changes dates in the input field
function changeZoomDates() {
    var startDateString = document.getElementById("startDate").value;
    var endDateString = document.getElementById("endDate").value;
    var startDate = stringToDate(startDateString);
    var endDate = stringToDate(endDateString);
    chart.zoomToDates(startDate, endDate);
}

<input onChange="changeZoomDates()" style="width:100px; text-align:center" type="text" id="startDate">

```

JSFiddle <http://jsfiddle.net/nos0q1dL/>

Answer: 
You may want to use a `SKShapeNode`, like this:

```
var barra = SKShapeNode(rectOfSize: CGSize(width: 300, height: 100))
barra.name = "bar"
barra.fillColor = SKColor.whiteColor()
barra.position = location

self.addChild(barra)

```

[Here's Apple's documentation on SKShapeNode.](https://developer.apple.com/Library/ios/documentation/SpriteKit/Reference/SKShapeNode_Ref/index.html)
The way I was creating the rectangle was not the best, but the problem was the position I was inserting it on the game. This is how I've fixed it:

```
var barra = SKSpriteNode(color: SKColor.blackColor(), size: CGSizeMake(200, 200))
barra.position = CGPoint(x: CGRectGetMidX(self.frame), y: CGRectGetMidY(self.frame))
barra.zPosition = 9 // zPosition to change in which layer the barra appears.

self.addChild(barra)

```