I'm using Jfreechart to build & display charts. I'm wondering, that it seems, there is no standard way, to check the type of created chart (e.g. bar, scatter etc). currently im checking the underlying plot to get the chart type, but i believe this option is limited, when comparing scatter chart with line chart. Is there any better way, to differ the chart types after it has been created?
Edit: Basically i want to apply data on charts. I'm using different charts (lets say ScatterChart and XYLineChart). I have one method, which shall apply the data based on the chart type. Both charts have the same plot type, so i cant distinguish them. The distinction is needed, as i need to change the shapes and line styles for the scatter chart. I already solved this, by using different methods to apply the data. But thats actually a dirty workaround. I came across on several issues, where distinguishing chart types would be very useful in my case. Thats why im asking, if there is a standard way, to obtain the chart type of an JFreeChart object