Rank: Newbie
Groups: Registered
Joined: 7/15/2012(UTC) Posts: 4
Thanks: 1 times Was thanked: 0 time(s) in 0 post(s)
|
With the following code, candlestick chart is rendered correctly. Code: <script lang="javascript" type="text/javascript"> $(document).ready(function () { $('#jqChart').jqChart({ title: { text: 'CNDL CHRT' }, series: [ { type: 'candlestick', data : [ ['Mon', 5375, 5325, 5340, 5330], ['Tue', 5322, 5250, 5290, 5270], ['Wed', 5375, 5325, 5340, 5330], ['Fri', 5322, 5250, 5290, 5270]] } ] }); }); </script>
All other things unchaged except for the JSON data as under, the chart is not rendered correctly. Tooltips are displayed for only some of the bars. All bars are without fill-color. Code: data : [["2012/07/02:0920", 5308.2, 5308.2, 5288.0, 5292.4], ["2012/07/02:0930", 5292.0, 5296.7, 5283.35, 5295.05], ["2012/07/02:0940", 5295.95, 5297.3, 5286.6, 5288.55], ["2012/07/02:0950", 5289.4, 5292.0, 5284.0, 5285.0]]
What may be wrong in the second "data" json object? Thanks, Vineet
|