Line styles - all or nothing

1 view
Skip to first unread message

diomedes

unread,
Jan 5, 2008, 10:31:16 PM1/5/08
to Google Chart API
Hi google team,

This is a minor nuisance :

It seems that if I want to specify style for one line in a linechart,
I actually need to specify styles for all the lines in a line chart
which means that I need to replicate in the url the defaults that
google uses for the styles which isn't ideal.

Including an empty string for the corresponding data set does not
have the desired effect - it breaks the whole line style setting. For
example see the default chart used in the google chart api home page :

chls=1|3|5 : everything works and each line has its own (1/3/5)
thickness
http://chart.apis.google.com/chart?cht=lc&chls=1|3|5&chco=ff0000,00ff00,0000ff&chs=200x125&chd=s:FOETHECat,lkjtf3asv,KATYPSNXJ&chxt=x,y&chxl=0:|Oct|Nov|Dec|1:||20K||60K||100K&

chls=||5 : breaks - all lines back to default (? =1 ) thickness
http://chart.apis.google.com/chart?cht=lc&chls=||5&chco=ff0000,00ff00,0000ff&chs=200x125&chd=s:FOETHECat,lkjtf3asv,KATYPSNXJ&chxt=x,y&chxl=0:|Oct|Nov|Dec|1:||20K||60K||100K&

ch=5 : works : it means that the first line's thickness is set to 5 -
2nd and 3rd lines are left to defaults (this does not work for me - I
cannot make the particular line I want to "emphasize" first due to
other dependencies)
http://chart.apis.google.com/chart?cht=lc&chls=5&chco=ff0000,00ff00,0000ff&chs=200x125&chd=s:FOETHECat,lkjtf3asv,KATYPSNXJ&chxt=x,y&chxl=0:|Oct|Nov|Dec|1:||20K||60K||100K&

Thanks again for making this available,

diomedes

Uwe Maurer

unread,
Jan 7, 2008, 3:51:22 AM1/7/08
to Google Chart API
Hi diomedes,

thanks for this suggestion. It sounds very useful to me to be able to
keep the defaults like you described it. I added it to our TODO list.

Thanks,
Uwe

On Jan 6, 4:31 am, diomedes <alakaz...@gmail.com> wrote:
> Hi google team,
>
> This is a minor nuisance :
>
> It seems that if I want to specify style for one line in a linechart,
> I actually need to specify styles for all the lines in a line chart
> which means that I need to replicate in the url the defaults that
> google uses for the styles which isn't ideal.
>
> Including an empty string for the corresponding data set does not
> have the desired effect - it breaks the whole line style setting. For
> example see the default chart used in the google chart api home page :
>
> chls=1|3|5 : everything works and each line has its own (1/3/5)
> thicknesshttp://chart.apis.google.com/chart?cht=lc&chls=1|3|5&chco=ff0000,00ff00,0000ff&chs=200x125&chd=s:FOETHECat,lkjtf3asv,KATYPSNXJ&chxt=x,y&chxl=0:|Oct|Nov|Dec|1:||20K||60K||100K&
>
> chls=||5 : breaks - all lines back to default (? =1 ) thicknesshttp://chart.apis.google.com/chart?cht=lc&chls=||5&chco=ff0000,00ff00,0000ff&chs=200x125&chd=s:FOETHECat,lkjtf3asv,KATYPSNXJ&chxt=x,y&chxl=0:|Oct|Nov|Dec|1:||20K||60K||100K&
>
> ch=5 : works : it means that the first line's thickness is set to 5 -
> 2nd and 3rd lines are left to defaults (this does not work for me - I
> cannot make the particular line I want to "emphasize" first due to
> other dependencies)http://chart.apis.google.com/chart?cht=lc&chls=5&chco=ff0000,00ff00,0...Oct|Nov|Dec|1:||20K||60K||100K&
Reply all
Reply to author
Forward
0 new messages