Enhancement for Meter

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Enhancement for Meter

Postby Ortelius » Mon Jul 04, 2011 7:22 am

This is an enhancement request for the Meter component.

Would it be possible to implement some kind of color grading in the meter component similar to the attached picture where the colors and boundaries are arbitrary?
Attachments
Meter.png
Meter.png (18.22 KiB) Viewed 2794 times
Ortelius
 
Posts: 43
Joined: Thu Sep 02, 2010 5:26 am

Re: Enhancement for Meter

Postby charts.support » Tue Jul 05, 2011 2:50 pm

Actually, this is already possible with the DialIntervalMarker:

ColorGradedDial.png
Color Graded Dial
ColorGradedDial.png (31.17 KiB) Viewed 2788 times

Let me know if you have further questions.

PS. The documentation on gauges will be improved soon.
Attachments
GaugeWithColorGrading.java
(3.38 KiB) Downloaded 194 times
--
JIDE Charts Support
charts.support
 
Posts: 802
Joined: Tue Sep 08, 2009 3:09 pm

Re: Enhancement for Meter

Postby Ortelius » Wed Jul 06, 2011 6:29 am

Thank you, I'll have a closer look at this, but it seems like you got it all covered. :)
Ortelius
 
Posts: 43
Joined: Thu Sep 02, 2010 5:26 am

Re: Enhancement for Meter

Postby Ortelius » Mon Aug 29, 2011 5:46 am

Would it be possible to make the colors gradient and faid into each other? I've been doing some tests with the DialConicalPaint, but it doesnt really fit my needs. The problems I get is that I cant set a start and end point for each color, and I cant specify how "sharp" the fading should be.

What I'm trying to describe is something like this:
jideGauge.jpg
jideGauge.jpg (23.68 KiB) Viewed 2676 times


Here I've used the DialConicalPaint with the angles 180,90,0. However this isn't nearly as informative as the example we started this thread with, what I'm looking for is some kind of trade-of where I get the nice color gradings and still keeps the information.

Thank you.
Ortelius
 
Posts: 43
Joined: Thu Sep 02, 2010 5:26 am

Re: Enhancement for Meter

Postby charts.support » Tue Aug 30, 2011 3:53 pm

I think the best approach might still be to use the DialIntervalMarker as in my previous example, but to change the Paint used to fill the segments to be a DialConicalPaint. I'll have a go and see what happens...
--
JIDE Charts Support
charts.support
 
Posts: 802
Joined: Tue Sep 08, 2009 3:09 pm

Re: Enhancement for Meter

Postby charts.support » Wed Aug 31, 2011 3:47 pm

How about this...?

GaugeWithColorGrading2.png
Gauge With Color Grading
GaugeWithColorGrading2.png (23.04 KiB) Viewed 2672 times


If you look at the code the work is all done in the addMarker method. The idea is that if you want, say, the yellow region to start at a value of 60 then you start the transition sometime before that. The method allows you to specify how quick the transition should be. A key idea with this approach is that the colors are linked to axis values and the corresponding angles are calculated, which means that if someone later comes along and changes the presentation of the dial the color settings still work.
Attachments
GaugeWithColorGrading2.java
(3.78 KiB) Downloaded 208 times
--
JIDE Charts Support
charts.support
 
Posts: 802
Joined: Tue Sep 08, 2009 3:09 pm


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest