Setting the colour for a line chart
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Setting the colour for a line chart
Hi,
I have a chart widget, when I set it to a bar chart it works fine and I can use the 'set the backgroundDataColors of widget chart' to set background colours for each individual bar, separating each bar colour by a cr.
However, when I swap to a line chart I cannot seem to set the colours of the lines. How do I do this?
It is the standard chart widget included with Livecode 10.
I have a chart widget, when I set it to a bar chart it works fine and I can use the 'set the backgroundDataColors of widget chart' to set background colours for each individual bar, separating each bar colour by a cr.
However, when I swap to a line chart I cannot seem to set the colours of the lines. How do I do this?
It is the standard chart widget included with Livecode 10.
Re: Setting the colour for a line chart
Hi Andy,
I don't think this is a bug, but rather the "nature" of a "line chart".
The separate values are represented by the little squares, circle or what the "pointstyle" is set to)
and these are colorized correctly. Raise the "pointradius" and you'll see what I mean.
Best
Klaus
I don't think this is a bug, but rather the "nature" of a "line chart".
The separate values are represented by the little squares, circle or what the "pointstyle" is set to)
and these are colorized correctly. Raise the "pointradius" and you'll see what I mean.
Best
Klaus
Re: Setting the colour for a line chart
Now that one reads like really capable AI.
If wrong, I will welcome the new OP roundly.
Craig
If wrong, I will welcome the new OP roundly.
Craig
Re: Setting the colour for a line chart
Not AI Craig, genuine human.
Regards
Andy
Regards
Andy
Re: Setting the colour for a line chart
Hi Andy,,
Craig does not mean you, but the SPAM posting I deleted a couple of minutes ago.
Best
Klaus
Craig does not mean you, but the SPAM posting I deleted a couple of minutes ago.

Best
Klaus
Re: Setting the colour for a line chart
Oh, ok. Didn't see the spam post and Craig mentioned OP so I thought he meant me!
Re: Setting the colour for a line chart
Yes, I know, that's why I explained the situation to you. 
But what about my first answer?

But what about my first answer?
Re: Setting the colour for a line chart
Your first answer was great. I had the point size set to 0 so Livecode was just drawing a grey line I could not colour. I changed the point size to 2 and colours circles appeared on the line. It is not what I wanted originally (to colour the line itself) but it will be fine.
Now if the chart would refresh in iOS it would be perfect, but that is a long standing bug by the looks of it so Im not holding out much hope.
Now if the chart would refresh in iOS it would be perfect, but that is a long standing bug by the looks of it so Im not holding out much hope.