Search found 6 matches

by keith20mm
Thu Feb 02, 2012 7:47 pm
Forum: Java
Topic: Superscript/subscript
Replies: 1
Views: 7813

Superscript/subscript

I'm needing to show the chart title as a string containing superscripts and/or subscripts. I'm able to set any typical Android EditText value as: EditText myEditText=new EditText(this); String with="x<sub>3</sub>"; myEditText.setText(Html.fromHtml(with)); ..and the editText correctly displays x with...
by keith20mm
Wed Jan 25, 2012 9:17 pm
Forum: Java
Topic: chart background + remove grid in Android
Replies: 11
Views: 26241

Re: chart background + remove grid in Android

In your code example above, you have: chart.getLegend().setVisible(false); This disabled drawing of the legend. Change it to this: chart.getLegend().setVisible(true); and the legend will show the amounts for each slice. In the TChart Android demo, if you select a Pie Series from the Series list, you...
by keith20mm
Wed Jan 25, 2012 8:14 pm
Forum: Java
Topic: Need axis line to touch chart edge
Replies: 3
Views: 11530

Re: Need axis line to touch chart edge

Thank you Yeray, ColorLine is much easier to use than ChartPaintListener().chartPainted(ChartDrawEvent e), where I had to determine whether the axis line needed to drawn or not. As to using a series to create an axis... well, that is futile effort to have any value outside the margin. I had resorted...
by keith20mm
Wed Jan 25, 2012 5:42 pm
Forum: Java
Topic: chart background + remove grid in Android
Replies: 11
Views: 26241

Re: chart background + remove grid in Android

Regarding transparency of the background, you can use: chart.getPanel().setTransparent(true); As an aside, you could also use a range number to vary the 'pen' used to draw the chart parts. chart.getPanel().setTransparency(50); ..or you may have an image background. You might also have an imageview i...
by keith20mm
Wed Jan 25, 2012 3:53 pm
Forum: Java
Topic: chart background + remove grid in Android
Replies: 11
Views: 26241

Re: chart background + remove grid in Android

As to the grid visibility: // disable left axis grid chart.getAxes().getLeft().getGrid().setDefaultVisible(false); // disable bottom axis grid chart.getAxes().getBottom().getGrid().setDefaultVisible(false); // similar function for getTop() and getRight() grids. // to change grid style, for example: ...
by keith20mm
Mon Jan 23, 2012 11:07 pm
Forum: Java
Topic: Need axis line to touch chart edge
Replies: 3
Views: 11530

Need axis line to touch chart edge

I have a Fastline series on my chart, and I've loaded and plotted xy value pairs on this series. I also have two other series, one for a 0-origin x-axis and one for a o-origin y-axis. I only add the 0-origin x-axis series when the fastline y-values pass through or to y=0, and I only add the 0-origin...