Continuing on with this conundrum:

I've been able to accomplish roughly what I intended using the method
I described above. Example: http://tinyurl.com/5zgqyd

The problem that I discovered is that since a partially solid and
partially dashed line is literally a collection of connected lines,
then a legend that is meant to display the colors of N lines actually
displays the colors of the first N segments of the first "composite
line".

After some tinkering, I realized that for N lines, I could...
- Plot N out-of-range data points at the beginning of the chart data
- Add these points to the beginning of my declarations of line styles
and data scaling (I forgot about this at first)
- Color each of these hidden points according to how the legend is
supposed to display

The results can be found here: http://tinyurl.com/5da7dv

I wish there were a more elegant strategy for these tasks, though.
Please contribute, if you know of any.

- Graham Watson

On Dec 9, 9:59 am, Graham Watson <[EMAIL PROTECTED]> wrote:
> I'm in a similar position, wherein I need to plot a single line that
> has both solid and dashed segments. I assume that the following would
> work if I needed to plot a solid line with a dashed segment in the
> middle:
> - The first solid segment is plotted as the first data set, styled
> with a solid line
> - The dashed segment is plotted as a second data set, styled
> appropriately
> - The last solid segment is plotted as the third data set
>
> But in the case of charts with a great many lines or frequent
> alternation between dashed and solid style, this method could quickly
> grow cumbersome. Is there any other strategy provided by the API that
> I'm overlooking?
>
> - Graham Watson
>
> On Nov 3, 6:02 am, Michael Price <[EMAIL PROTECTED]> wrote:
>
> > 'lo all,
> > We're working on recreating some reports for a client and I would like
> > to use Google Chart API for the graphing and charting etc. within.
>
> > Our client would like to keep the existing bar styles for certain
> > samples of data, which lead to bars on the graph being crosshatched, and
> > lines on a line graph being dashed in parts but solid in others, as can
> > be seen here:
>
> >http://img80.imageshack.us/my.php?image=graphsnz6.jpg
>
> > Are these fill / line styles possible with the Chart API?
>
> > Regards,
> > Michael Price
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
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-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to