Skip to content
Snippets Groups Projects
Commit 2d208549 authored by Tim Molter's avatar Tim Molter
Browse files

README updates

parent 1b445a43
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,8 @@ Currently, there are three major chart types: `XYChart`, `CategoryChart` and `Pi
|---|---|---|---|---|---|
| XYChart | XYChartBuilder | XYStyler | XYSeries | Number, Date | Line |
| CategoryChart | CategoryChartBuilder | CategoryStyler | CategorySeries | Number, Date, String | Bar |
| PieChart | PieChartBuilder | PieStyler | PieSeries | String | Pie |
| PieChart | PieChartBuilder | PieStyler | PieSeries | String | Pie, Donut |
| BubbleChart | BubbleChartBuilder | BubbleStyler | BubbleSeries | Number, Date | Round |
The different Stylers contain chart styling methods specific to the corresponding chart type as well as common styling methods common across all chart types.
......@@ -173,10 +174,14 @@ Series render styles include: `Pie` and `Donut`.
![](https://raw.githubusercontent.com/timmolter/XChart/develop/etc/XChart_Real_Time_Bubble_Chart.gif)
`BubbleChart` charts take Date or Number data types for the X-Axis and Number data types for the Y-Axis. Number data types are taken for the bubble sizes.
`BubbleChart` charts take Date or Number data types for the X-Axis and Number data types for the Y-Axis and bubble sizes.
Series render styles include: `Round` and in the near future `Square`.
## Real-time Java Charts using XChart
The above image shows a real-time bubble chart. Real-time charts are as simple as calling `replaceData` on one or more series objects and triggering a redraw of the `JPanel` containing the chart. There are several real-time chart demos, all of which can be found here: <https://github.com/timmolter/XChart/tree/develop/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/realtime>.
## Chart Customization
All the styling options can be found in one of two possible places: 1) the Chart's `Styler` or 2) the series' `set` methods. With this chart customization design, all customization options can be quickly "discovered" using an IDE's built in "Content Assist". With centralized styling like this, there is no need to hunt around the entire charting API to find that one customization you're looking for - it's all right in one spot!
......
......@@ -72,9 +72,9 @@ public abstract class Series_AxesChart extends Series {
* @param xAxisType
* @param yData
* @param yAxisType
* @param errorBars
* @param newExtraValues
*/
public Series_AxesChart(String name, List<?> xData, List<? extends Number> yData, List<? extends Number> errorBars) {
public Series_AxesChart(String name, List<?> xData, List<? extends Number> yData, List<? extends Number> newExtraValues) {
super(name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment