The hAxis labels are just numbers. You are going to have odd label spacing
if you use those values, but it will work, just specify the hAxis.ticks
option:
hAxis: {
ticks: [250, 500, 750, 1000, 1500, 2000, 3000, 4000, 6000, 8000],
viewWindow: {
max: 8000,
min: 250
}
}
see http://jsfiddle.net/asgallant/GTjB2/2/
On Wednesday, January 22, 2014 8:32:10 PM UTC-5, cjm287 wrote:
>
> Ah, yes. Thanks.
>
> I appreciate this.
>
> I made the chart a little more towards what I was looking for. I reversed
> the y axis, formatted it, and rounded the numbers when clicked the way I
> need them.
>
> 1. Is there a way to make the data point be an 'X' or an 'O' instead of
> the given dot for the symbol?
> I am searching the documentation, but am guessing not.
>
> 2. Is there a way to change the bottom hAxis labels be: 250, 500, 750,
> 1000, 1500, 2000, 3000, 4000, 6000, 8000
>
> I'm assuming these are "discrete" column names?
>
> Here's what I have so far:
>
> http://jsfiddle.net/GTjB2/1/
>
>
>
>
>
>
> On Wed, Jan 22, 2014 at 4:07 PM, asgallant
> <[email protected]<javascript:>
> > wrote:
>
>> You can round off the points to whatever precision you want, and you can
>> test the clicked point against the last row in the DataTable to see if it
>> is to the right of the last point. Here's a modified version of the fiddle
>> that rounds values to 0.5 and only allows points to be added on the right:
>> http://jsfiddle.net/asgallant/8Fsf4/3/
>>
>>
>> On Tuesday, January 21, 2014 7:02:34 PM UTC-5, cjm287 wrote:
>>
>>> This is great.
>>>
>>> Is there a way, do you think, to limit the line to be made: can only
>>> click on x and y axis intersections? And only click from left to right, for
>>> instance?
>>>
>>> Thanks so much.
>>>
>>>
>>> On Tue, Jan 21, 2014 at 6:16 PM, asgallant <[email protected]>wrote:
>>>
>>>> You can certainly graph a reverse Y-axis, and you can use AJAX to push
>>>> data back to your server (the Visualization API won't do this for you, but
>>>> it is easy enough to write AJAX functions using other libraries [jQuery,
>>>> MooTools, etc]).
>>>>
>>>> Adding points to a chart based on the user clicking is a bit trickier,
>>>> but also doable. One of the dev team put together a demonstration for
>>>> this
>>>> a few months back: http://jsfiddle.net/8Fsf4/
>>>>
>>>>
>>>> On Tuesday, January 21, 2014 2:28:26 PM UTC-5, cjm287 wrote:
>>>>>
>>>>> Have been searching for a long time no try to find a clickable chart
>>>>> that does what I want.
>>>>>
>>>>> I really need to do two things.
>>>>>
>>>>> 1. I need a chart that will allow me to graph a reverse y-axis. Seems
>>>>> like this is possible with Google line charts.
>>>>>
>>>>> 2. The biggest thing though, that I haven't been able to find, is the
>>>>> ability to create a line chart on the fly. I basically want a blank chart
>>>>> to load on my page based on a template that I'll make with given x and y
>>>>> axis values. Then as I click different data points along the chart a line
>>>>> is created.
>>>>>
>>>>> Of course, I'd like to load past charts, and then be able to edit them
>>>>> in the same way.
>>>>>
>>>>> I currently use PHP and MySQL for a content management system. So upon
>>>>> submission of the form I would then send the data to a database.
>>>>>
>>>>> Can anyone find anything that may possibly put me in right direction
>>>>> with Google line charts?
>>>>>
>>>>> Thanks.
>>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Google Visualization API" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>>> topic/google-visualization-api/XA8rssJ3Wwg/unsubscribe.
>>>> To unsubscribe from this group and all its topics, 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.
>>>>
>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Visualization API" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/google-visualization-api/XA8rssJ3Wwg/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected] <javascript:>.
>> To post to this group, send email to
>> [email protected]<javascript:>
>> .
>> Visit this group at
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
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.