Search found 18 matches
- Thu Jun 07, 2012 3:13 pm
- Forum: Java
- Topic: Changing the value color on linear gauge
- Replies: 4
- Views: 15075
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(...
- Thu Jun 07, 2012 2:56 pm
- Forum: Java
- Topic: Changing the value color on linear gauge
- Replies: 4
- Views: 15075
Changing the value color on linear gauge
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); linearGaugeSe...
- Thu Jun 07, 2012 2:53 pm
- Forum: Java
- Topic: CircularGauge Look
- Replies: 24
- Views: 55427
Re: CircularGauge Look
Circular gauge will always be a full circle, though you can set where the data ticks start by using setRotationAngle and setTotalAngle. If you want a 180 gauge use the regular Gauges series.
- Wed Jun 06, 2012 2:54 pm
- Forum: Java
- Topic: Circular Gauge set value not working
- Replies: 6
- Views: 19287
Re: Circular Gauge set value not working
I was using a 2011 version, whatever the official release for 2011 was. I tried using the 2011 beta version, as I'm registered for that, but it gave me a bunch of compile errors saying some methods were non existent. Very strange. However, I downloaded a 2012 evaluation and everything seems to work ...
- Tue Jun 05, 2012 8:41 pm
- Forum: Java
- Topic: Do custom labels work on circular gauge?
- Replies: 1
- Views: 8226
Do custom labels work on circular gauge?
I'm trying this with a gauge series and getting no results: gaugeSeries.getAxis().getCustomLabels().add(10.0,"10 percent"); My gauge is very simple circular gauge that has a min of 0 and a max of 100. No mater what I do it always paints the standard labels at whatever increment I set the axis to. Se...
- Tue Jun 05, 2012 8:02 pm
- Forum: Java
- Topic: Circular Gauge set value not working
- Replies: 6
- Views: 19287
Re: Circular Gauge set value not working
Ok I got it to work only when I set the limits to 300 or less. I attached three screenshots, one is chart limits of 0-300, another 0-400 and last one my desired 0-8000. All three have the axis increment set at high - low / 10. I also set the green line and red line at 80% and 90-100% of the value as...
- Tue Jun 05, 2012 2:36 pm
- Forum: Java
- Topic: Circular Gauge set value not working
- Replies: 6
- Views: 19287
Re: Circular Gauge set value not working
Thanks for the clarification on the series. It still is not updating however. I have the chart on a panel, which is part of another panel on a scroll pane. I'm making a scrollable view of gauges in a grid format. So the chart is several levels down. I tried explicitly calling gaugeSeries1.repaint() ...
- Mon Jun 04, 2012 12:49 pm
- Forum: Java
- Topic: Circular Gauge set value not working
- Replies: 6
- Views: 19287
Circular Gauge set value not working
I'm not sure what I'm doing wrong. I have a very simple circular gauge on a chart. I copied an example to give it a nice look. Here's the code snippet: TChart chart1; private CircularGauge gaugeSeries1; double dHigh = 8000; double dLow = 0; chart1.setText(""); chart1.setClipPoints(false); chart1.get...
- Thu May 31, 2012 9:28 pm
- Forum: Java
- Topic: How to make Semi Circular Gauge
- Replies: 1
- Views: 8455
How to make Semi Circular Gauge
In the gallery there is a very nice looking gauge titled a semi-circular gauge. I am curious how to make something similar. I've looked through the examples I could find but there only seems to be one example for a circular gauge. Is there a place to find the source code example for a semi circular ...
- Wed Nov 09, 2011 4:13 pm
- Forum: Java
- Topic: Exceptions while painting custom labels
- Replies: 1
- Views: 8936
Exceptions while painting custom labels
I have built a UI that is a JScrollPane with multiple charts aligned vertically. The number of charts varies but is usually around 30. Some of these charts graph numbers and others use custom labels to graph states like 0 = Off and 1 = On. When I only implemented the numbers everything worked fine. ...
- Wed Nov 09, 2011 3:29 pm
- Forum: Java
- Topic: Aligning multiple charts with custom labels
- Replies: 4
- Views: 13417
Re: Aligning multiple charts with custom labels
chart1.getAxes().getLeft().getSizeLabels(); works for me, just took some time to find the right function
- Thu Nov 03, 2011 2:53 pm
- Forum: Java
- Topic: Aligning multiple charts with custom labels
- Replies: 4
- Views: 13417
Re: Aligning multiple charts with custom labels
This looks like it will work, but I am having trouble finding the MaxLabelsWidth property in java. Can you show me where it is from the TChart object? For example, chart1.getAxes().getLeft().getCustomLabels()....
- Wed Nov 02, 2011 3:11 pm
- Forum: Java
- Topic: Aligning multiple charts with custom labels
- Replies: 4
- Views: 13417
Aligning multiple charts with custom labels
I have multiple charts displayed in a vertical row fashion, one on each row of a grid. The charts are all a history of data values over time so the X-axis on all is time and is the same, but the Y-axis varies. Some graph decimal numbers, other graph string states and I use custom labels. The problem...
- Fri Jul 22, 2011 9:02 pm
- Forum: Java
- Topic: How to change chart empty space margins
- Replies: 3
- Views: 12471
Re: How to change chart empty space margins
I found solutions to both of my issues. Unfortunately there are not a lot of postings in the java forum, but once I searched the vcl forum I found hints to point me in the right direction pretty quickly. Posting the solutions here for others. To change the margins you have to do chart1.getChart().ge...
- Fri Jul 22, 2011 8:04 pm
- Forum: Java
- Topic: How to change chart empty space margins
- Replies: 3
- Views: 12471
Re: How to change chart empty space margins
Another related question, how do I get the color of the values on the axis to change? I see that I can do axis.getPen.setColor but that just changes the axis line color, not the values on it. The label color options doesn't work either.