Yes, the reason your chart shows the 50-year time span is because all of
your data is on the same date. The chart can not infer an appropriate axis
range given a single date, so you would have to either add more dates, or
specify any of the following hAxis options:
hAxis: {
minValue: /* some date for the start of the data set, chart uses min of
minValue and min date in data set */,
maxValue: /* some date for the end of the data set, chart uses max of
maxValue and max date in data set */
}
hAxis: {
viewWindow: {
min: /* min date for the chart to show (overrides data) */,
max: /* max date for the chart to show (overrides data) */
}
}
hAxis: {
ticks: [/* array of dates to use as the axis values */]
}
On Thursday, March 6, 2014 12:18:00 PM UTC-5, Missy wrote:
>
> Hi,
>
> its a little strange, on the alert dialog the date shows up as 'wed jan 16
> 2013' but the code behind data is formatted as below:
>
> <script
> type="text/javascript">google.load('visualization','1.0',{'packages':['corechart','controls']});google.setOnLoadCallback(function(){drawVisualization([{"ColumnName":"ADAGI","Value":59,"Type":"CVR","Date":"\/Date(1358294400000)\/"},{"ColumnName":"AXIUS
>
> 2007-1X
> SUB","Value":32,"Type":"CVR","Date":"\/Date(1358294400000)\/"},{"ColumnName":"BACCH
>
> 2007-1
> C","Value":75,"Type":"CVR","Date":"\/Date(1358294400000)\/"},{"ColumnName":"MSIMC
>
> 2007-1X
> D","Value":75,"Type":"CVR","Date":"\/Date(1358294400000)\/"},{"ColumnName":"EGLXY
>
> 2007-2X
> D","Value":75,"Type":"CVR","Date":"\/Date(1358294400000)\/"},{"ColumnName":"GALE","Value":97,"Type":"TALK","Date":"\/Date(1358294400000)\/"},{"ColumnName":"DUANE","Value":98,"Type":"TALK","Date":"\/Date(1358294400000)\/"},{"ColumnName":"ABCLO","Value":97,"Type":"TALK","Date":"\/Date(1358294400000)\/"},{"ColumnName":"DRYD","Value":98,"Type":"TALK","Date":"\/Date(1358294400000)\/"},{"ColumnName":"NOBHL","Value":98,"Type":"TALK","Date":"\/Date(1358294400000)\/"}],'Text
>
> Example','Text Example','Price_Type,');});</script></form>
>
> Could this issue because i have duplicate date values. for example, i
> have 10 data points for the same date '16/1/2013', could this be the reason?
> if so, do I implement function to deal with this in javascript or c# code
> behind.
>
> Thanks a million for support and time.
>
>
>
>
> On Thursday, March 6, 2014 4:59:34 PM UTC, asgallant wrote:
>>
>> What does the data look like?
>>
>>>
>>>>>>>>>>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" 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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.