I'm trying to change the color of the value bar on the linear gauge. Can't get it to work. I've tried:
linearGaugeSeries = new LinearGauge(chart1.getChart());
linearGaugeSeries.getValueAreaBrush().setColor(Color.RED);
linearGaugeSeries.getValueAreaBrush().setForegroundColor(Color.RED);
linearGaugeSeries.getFaceBrush().setColor(Color.RED);
linearGaugeSeries.getFaceBrush().setForegroundColor(Color.RED);
but it always stays blue like this screenshot. This is with the v2012 evaluation version.
Changing the value color on linear gauge
Changing the value color on linear gauge
- Attachments
-
- linear gauge color.png (14.45 KiB) Viewed 15608 times
Re: Changing the value color on linear gauge
Also having a probelm setting the increment on a regular Gauges series.
double dHigh = 8000;
double dLow = 0;
gaugeSeries = new Gauges(chart1.getChart());
gaugeSeries.setMinimum(dLow);
gaugeSeries.setMaximum(dHigh);
gaugeSeries.getHorizAxis().setIncrement((dHigh - dLow)/10);
gaugeSeries.getVertAxis().setIncrement((dHigh - dLow)/10);
chart1.getAxes().getLeft().setIncrement((dHigh - dLow)/10);
chart1.getAxes().getBottom().setIncrement((dHigh - dLow)/10);
double dHigh = 8000;
double dLow = 0;
gaugeSeries = new Gauges(chart1.getChart());
gaugeSeries.setMinimum(dLow);
gaugeSeries.setMaximum(dHigh);
gaugeSeries.getHorizAxis().setIncrement((dHigh - dLow)/10);
gaugeSeries.getVertAxis().setIncrement((dHigh - dLow)/10);
chart1.getAxes().getLeft().setIncrement((dHigh - dLow)/10);
chart1.getAxes().getBottom().setIncrement((dHigh - dLow)/10);
- Attachments
-
- gauges no increment.png (13.64 KiB) Viewed 15579 times
Re: Changing the value color on linear gauge
Hi Mark,
Try with:mts wrote:I'm trying to change the color of the value bar on the linear gauge. Can't get it to work.
Code: Select all
linearGaugeSeries.getHand().setColor(Color.RED);
You are right. It seems the Gauges axis increment is forced to 10. I've fixed it for the next maintenance release so this will work fine:mts wrote:Also having a probelm setting the increment on a regular Gauges series.
Code: Select all
gaugeSeries.getVertAxis().setIncrement((dHigh - dLow)/10);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Changing the value color on linear gauge
About mts problem, I have the same problem.
Do you have a date to release this fix?
Do you have a date to release this fix?
Re: Changing the value color on linear gauge
Hi,
One with a workaround suggested:
I see two problems here:WhebJava wrote:About mts problem, I have the same problem.
Do you have a date to release this fix?
One with a workaround suggested:
And a second one that should be fixed with v3.2013.0517:Yeray wrote:Try with:mts wrote:I'm trying to change the color of the value bar on the linear gauge. Can't get it to work.Code: Select all
linearGaugeSeries.getHand().setColor(Color.RED);
Which one of the problems are you reproducing? And what TeeChart version are you using?Yeray wrote:You are right. It seems the Gauges axis increment is forced to 10. I've fixed it for the next maintenance release so this will work fine:mts wrote:Also having a probelm setting the increment on a regular Gauges series.Code: Select all
gaugeSeries.getVertAxis().setIncrement((dHigh - dLow)/10);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |