Highcharts how to pass milliseconds to pointStart (really a javascript question) -


what trying pass variable pointstart option of highcharts.

here's part of javascript

<script type="text/javascript">     var dttemp = '1303401600000';     // dttemp datetime in milliseconds </script> 

dttemp purpose of question assigned above, comes code-behind using variable opposed entering number directly functional requirement.

what use dttemp variable start point highcharts series. appropriate way assign dttemp pointstart. example of pointstart in action can seen in jsfiddle.

series: [{     data: [29.9, 71.5, 106.4],     pointstart: dttemp,    // not work     pointinterval: 3600000 }] 

the code above not work, highcharts not accept dttemp is. pretty new of assume problem dttemp string wants number (double?). however, replacing above following not work:

pointstart: number(dttemp),     // not work either 

so bit @ loss problem is. insight may able provide appreciated. in advance!

edit: solution per mvchr reply:

pointstart: number(dttemp),     // number capital n works! 

you're correct, number(dttemp) needs capitalized.

see example


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -