Hi Guys,

I'm new with angularJS,
I'm working with this chart: http://plnkr.co/edit/5vQOj9?p=preview

I'm importing data from mysql database, my issue is with date format, the 
original chart have the below source code:

xAxis: {
                    axisLabel: 'Dates',
                    tickFormat: function(d) {
                        return d3.time.format('%x')(new Date(new Date() - 
(20000 * 86400000) + (d * 86400000)));
                    },
                    showMaxMin: false
... in scope section:
{"date": 15854, "open": 165.42, "high": 165.8, "low": 164.34, "close": 
165.22, "volume": 160363400, "adjusted": 164.35}

But the date in mysql database has the format: 01/01/2015 (french format)

What should i do to make angularjs use my date format from mysql (i'm 
importing with php with the below code:

elseif ($conn) {
$selected = mysql_select_db("easyrating", $conn);
$query = "select * from Tunisair";
$result = mysql_query($query);
$res_array = array();

while($row = mysql_fetch_assoc($result)){
$res_array[] = $row;
}
}
echo json_encode($res_array);
mysql_close($conn);

Thanks in advance.
Samy

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to