Yeah I was afraid you would say that lol. Okay so there is no way to
override the calculation then? If not, that's fine. I'm just trying to
limit how much data I'm pushing to the client.
On Monday, October 7, 2013 2:03:22 PM UTC-3, asgallant wrote:
>
> I see what you are getting at now. That is a result of the algorithms
> that the API uses to calculate the appropriate axis values to label with
> continuous data series (which is what a "date" type series is). You can
> override the default labels by setting the hAxis.ticks option, which takes
> an array of values to put labels at, eg:
>
> hAxis: {
> // set the labels to fall on Fridays
> ticks: [new Date(2013, 7, 2), new Date(2013, 7, 9), new Date(2013, 7,
> 16), new Date(2013, 7, 23), new Date(2013, 7, 30), new Date(2013, 8, 6)]
> }
>
> On Monday, October 7, 2013 12:53:53 PM UTC-4, Severous Medina wrote:
>>
>> When you have enough data points or if your data points are spaced out
>> enough, the date labels will show the starting day of each week as shown in
>> the attachment. The problem is, the starting day of week is off from the
>> points.
>>
>>
>>
>> On Monday, October 7, 2013 12:09:02 PM UTC-3, asgallant wrote:
>>>
>>> Could you expand on your problem a bit more? The charts don't have any
>>> concept of a "week" to begin with, so I'm having trouble figuring out why
>>> it matters when the week starts.
>>>
>>> On Monday, October 7, 2013 11:02:18 AM UTC-4, Severous Medina wrote:
>>>>
>>>> Hi. I am currently making a financial chart control with Google chart
>>>> API and have hit a problem. The system I am putting this chart in has the
>>>> ability to let users change their starting financial week day to any day
>>>> of
>>>> the week. Example: I can start the financial week on Fridays so instead
>>>> of
>>>> the normal week for September 1-7 2013, it would be September 6-13. I
>>>> would like to know if there is a way to set the start of the week in the
>>>> chart control (besides manually setting the x-axis labels) for a line
>>>> chart. I am currently putting date objects into the chart for the x-axis
>>>> and letting the x-axis automatically create labels.
>>>>
>>>
--
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.