I want to represent a mass spectrum (m/z and intensity) in the form of a plot. I am using the following code, which used the `createHistogram` method to generate the plot:
Code: Select all
spectrumPlot = ChartFactory.createHistogram(node.toString(),
"m/z", "Intensity", dataset1, PlotOrientation.VERTICAL, false, false, false);
And, I want it to look something like this:
So, just single vertical bars even if the plot is zoomed. How can I do this?