I'm new in this forum and in the use of jFreeChart library to create charts.
I'm doing a work to school and have some doubts about some options.
I'm using this simple code to construct a graphic of sample sound:
Code: Select all
chartPanel = new ChartPanel(chart);
chartPanel.setDomainZoomable(true);
setContentPane(chartPanel);
chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
JPanel main = new JPanel(new BorderLayout());
JPanel checkpanel = new JPanel();
voltar = new JButton("Initial Image");
Action alisten = new Action();
voltar.addActionListener(alisten);
checkpanel.add(back);
main.add(checkpanel, BorderLayout.SOUTH);
main.add(chartPanel);
setContentPane(main);
How I can define to zoom in horizontal axis only? Using ZOOM_IN_HORIZONTAL_ACTION_COMMAND constant? How can apply this in my code?
How can do a "average of points" (point average?) in my chart?