Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide examples for BrushChart #171

Open
avglsscheffler opened this issue Oct 13, 2023 · 0 comments
Open

Provide examples for BrushChart #171

avglsscheffler opened this issue Oct 13, 2023 · 0 comments
Labels
enhancement New feature or request will accept PR

Comments

@avglsscheffler
Copy link

avglsscheffler commented Oct 13, 2023

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)
@avglsscheffler avglsscheffler added the enhancement New feature or request label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request will accept PR
Projects
None yet
Development

No branches or pull requests

2 participants