To answer in order:

1) you don't need to have data points for each individual series for every 
x value.  If a data series does not have a value for a given x, leave it 
null in the table.  Set the "interpolateNulls" option to true to avoid the 
gaps that otherwise appear when data is missing.  

To address the second part of this question, I don't see any practical 
means of charting two data series given a single set of (x,y) coordinate 
pairs.  Every series would have to have some sort of defining 
characteristics that allow for each coordinate pair to be assigned to one 
and only one series.  Perhaps your application would allow this, but 
generically speaking, it is not practical.  From a technical perspective, 
you would have to split the data into multiple series anyway when drawing 
the chart, so I don't see any advantage to attempting to set something like 
this up, even if it is feasible.

2) turning individual lines on and off is actually fairly easy.  There are 
a number of techniques to accomplish this, but of particular interest to 
you might be my hack that turns the CategoryFilter into a series selector: 
http://jsfiddle.net/asgallant/WaUu2/.  In your particular application this 
would require a bit of tweaking (since you have duplicate column labels), 
but once tweaked, it would turn on/off both the grey and blue lines for the 
selected series.

When setting the "focusTarget" option to "category", the tooltip only 
displays data points available for that axis value, so if I understood your 
question correctly, then the behavior you want is actually the default 
behavior here.

And yes, I do answer a lot of questions here >;o)

We get some really creative people stopping by here with some really cool 
ideas that they need help with, and if I can help turn those ideas into 
reality, then I like to think that in some small way, I have helped bring 
more awesome into the world.  If you want to join in, the more the merrier, 
but don't feel obligated to do so relieve the "burden" from me.

DFTBA

On Friday, September 21, 2012 3:43:59 PM UTC-4, Gizamo wrote:
>
> That worked great! Thank you.
>
> Sorry to keep bugging you, but I ran into another (big) snag that is out 
> of my range of capabilities.. The problem is that I am plotting multiple 
> series and they do not share x or y values. For example, SeriesA uses the 
> (x,y) points of (1,3);(2,6);(3,8);(4,9),... but SeriesB uses (0.8, 
> 1.8);(1.6,2.4);(2.4,5.6);(3.8,7.5),...  Is there a way to use the x and y 
> coordinates to plot the lines instead of requiring all x values to be 
> fixed?  Currently, the numbers in col1 are the x points for both SeriesA 
> and SeriesB; col2 numbers are y points for Series A; col3 numbers are y 
> points for SeriesB. Is there a way to do both (x,y) coordinate points in a 
> single column? And, if so, how would the calculation code be set up for 
> it.?  My current set up is here: http://jsfiddle.net/LWDP4/6/
>
> Also, I will end up with quite a few lines, so I would like to set up 
> check boxes to toggle them visible/invisible, and (if possible) I'd like 
> each checkbox to be associated with two separate series. To explain: There 
> are 4 lines in my chart, and the top blue and top gray lines represent data 
> for the same 100 PSI Air Supply Line (so they share the label "100 PSI Air 
> Supply"). The second blue and second gray lines represent the 90 PSI Air 
> Supply data. So if I could associate the blues line with their 
> corresponding gray lines and allow users to toggle visibility on/off via 
> checkbox, it would simplify things for the user. (oh, and if it helps, the 
> x value for both the blue line and corresponding gray line would always be 
> the same). Lastly, I found this focusTarget: 'category', in the 
> documentation. It allows me to put all of the y data for each x value in a 
> tooltip. It seems logical that if the associated blue and gray lines share 
> the same x value with each other but not with other the series, the only 
> those two values would go into the tool tip if I could set points. Is that 
> correct/possible?
>
> Thanks again. 
>
> Side note: I've noticed that you are answering a lot of questions on this 
> forum. Hopefully, I'll learn enough of the code during this project so I 
> can help you help others (because I know how it feels to be one of a few 
> guys answering tough questions for dozens of people). 
>
> On Tuesday, September 18, 2012 5:41:00 PM UTC-6, Gizamo wrote:
>>
>> Hello. I'm trying to make something similar to this line graph: 
>> http://jsfiddle.net/LuP4K/
>>
>> The actual chart layout I'm trying to replicate is here: 
>> http://wkfluidhandling.com/media/images/performance-curves/psu060-performance-curves-665x435.png
>>  (but I'd like to use only Standard or Metric units and allow the user to 
>> choose whichever they prefer with a toggle button).
>>
>> Anyway, it was simple enough to setup in Highcharts, but I can't seem to 
>> figure out how to create a GoogleCharts version of it (in part because I am 
>> struggling with the API features/language). Can someone please get me 
>> started in the correct path?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/nizI2bLb_BkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to