JFreeChart format Y-axis to show values in Power
How to format y-axis to show values as 5*10^5, 1*10^6, 2*10^6... instead of 500,000,1,000,000, 2,000,000... and which are divisible by 5 or 10? trashgod A LogAxis with the default tick units seems to work. This related example uses integer tick units. import java.awt.Dimension; import java.awt.EventQueue; import javax.swing.JFrame; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.LogAxis; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; import org.jfree.data.xy