I'm trying to display a frequency spectrum on an XYchart, using the log scale for the Y axis, to represent power. But the labeling on the chart shows power as a multiple of power value, like (1,10,100...) But I need it to show power in dB, like (0,10,20,30...). I tried generating my own label strings and attach them like:
I understand the data are power level, but you want to display decibels. Apart from the custom labels, another method is to convert your data to decibels before passing the data to ChartDirector. In this case, the axis is a linear axis in decibel and the axis unit matches the data unit.