Class OHLCChart01
java.lang.Object
org.knowm.xchart.demo.charts.ohlc.OHLCChart01
- All Implemented Interfaces:
ExampleChart<OHLCChart>
Demonstrates the following:
- Tooltips
- LegendPosition.OutsideS *
- default OHLCSeriesRenderStyle.Candle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChart()
static void
static void
populateData
(Date startDate, double startPrice, int count, List<Date> xData, List<Double> openData, List<Double> highData, List<Double> lowData, List<Double> closeData) static void
populateData
(List<Date> xData, List<Double> openData, List<Double> highData, List<Double> lowData, List<Double> closeData)
-
Constructor Details
-
OHLCChart01
public OHLCChart01()
-
-
Method Details
-
main
-
populateData
-
populateData
-
getChart
- Specified by:
getChart
in interfaceExampleChart<OHLCChart>
-
getExampleChartName
- Specified by:
getExampleChartName
in interfaceExampleChart<OHLCChart>
-