Provide examples for BrushChart
Opened this issue · 0 comments
avglsscheffler commented
Hi there,
I am trying to setup a brush chart(https://apexcharts.com/javascript-chart-demos/line-charts/brush-chart/) with your lib.
There is code (builders, classes etc.) in your repo.
Howerver, i am not able make it work.
I always end up with an error 'ApexCharts is not defined'.
Can you please provide an example or a code snipped how it should be done propperly?
Code Example:
.withChart(ChartBuilder.get()
.withType(Type.LINE)
.withId("bigChart")
.build())
.withSeries(new Series("test", 1, 2, 3))
.build();
add(apexChart);
final ApexCharts brushChart = bigApexChartsBuilder
.withChart(ChartBuilder.get()
.withId("brushChart")
.withType(Type.AREA)
.withBrush(BrushBuilder.get()
.withEnabled(true)
.withTarget("bigChart")
.build())
.build())
.build();
add(brushChart);```
![Auswahl_013](https://github.com/appreciated/apexcharts-flow/assets/129512326/e1f56b91-9020-4c51-880a-ecbfa2941095)