Page 1 of 1
Setting the colour for a line chart
Posted: Sat Nov 09, 2024 7:55 pm
by andyh1234
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.
Re: Setting the colour for a line chart
Posted: Sun Nov 10, 2024 3:04 pm
by Klaus
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
Re: Setting the colour for a line chart
Posted: Fri Nov 15, 2024 4:22 am
by dunbarx
Now that one reads like really capable AI.
If wrong, I will welcome the new OP roundly.
Craig
Re: Setting the colour for a line chart
Posted: Fri Nov 15, 2024 1:10 pm
by andyh1234
Not AI Craig, genuine human.
Regards
Andy
Re: Setting the colour for a line chart
Posted: Fri Nov 15, 2024 1:17 pm
by Klaus
Hi Andy,,
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
Posted: Fri Nov 15, 2024 1:34 pm
by andyh1234
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
Posted: Fri Nov 15, 2024 4:44 pm
by Klaus
Yes, I know, that's why I explained the situation to you.
But what about my first answer?
Re: Setting the colour for a line chart
Posted: Fri Nov 15, 2024 5:46 pm
by andyh1234
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.