├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── assembly ├── MANIFEST.MF └── assembly.xml ├── frontend └── index.html ├── logo-white.png ├── package.json ├── pom.xml ├── src ├── main │ ├── java │ │ └── com │ │ │ └── github │ │ │ └── appreciated │ │ │ └── apexcharts │ │ │ ├── ApexCharts.java │ │ │ ├── ApexChartsBuilder.java │ │ │ ├── config │ │ │ ├── Annotations.java │ │ │ ├── Chart.java │ │ │ ├── DataLabels.java │ │ │ ├── DiscretePoint.java │ │ │ ├── Fill.java │ │ │ ├── ForecastDataPoints.java │ │ │ ├── Grid.java │ │ │ ├── Legend.java │ │ │ ├── Locale.java │ │ │ ├── Markers.java │ │ │ ├── NoData.java │ │ │ ├── PlotOptions.java │ │ │ ├── Responsive.java │ │ │ ├── States.java │ │ │ ├── Stroke.java │ │ │ ├── Theme.java │ │ │ ├── TitleSubtitle.java │ │ │ ├── Tooltip.java │ │ │ ├── XAxis.java │ │ │ ├── YAxis.java │ │ │ ├── annotations │ │ │ │ ├── AnnotationLabel.java │ │ │ │ ├── AnnotationStyle.java │ │ │ │ ├── Label.java │ │ │ │ ├── Padding.java │ │ │ │ ├── XAxisAnnotations.java │ │ │ │ ├── YAxisAnnotations.java │ │ │ │ └── builder │ │ │ │ │ ├── AnnotationLabelBuilder.java │ │ │ │ │ ├── AnnotationStyleBuilder.java │ │ │ │ │ ├── LabelBuilder.java │ │ │ │ │ ├── PaddingBuilder.java │ │ │ │ │ ├── XAxisAnnotationsBuilder.java │ │ │ │ │ └── YAxisAnnotationsBuilder.java │ │ │ ├── builder │ │ │ │ ├── ChartBuilder.java │ │ │ │ ├── DataLabelsBuilder.java │ │ │ │ ├── FillBuilder.java │ │ │ │ ├── ForecastDataPointsBuilder.java │ │ │ │ ├── GridBuilder.java │ │ │ │ ├── LegendBuilder.java │ │ │ │ ├── LocaleBuilder.java │ │ │ │ ├── MarkersBuilder.java │ │ │ │ ├── NoDataBuilder.java │ │ │ │ ├── PlotOptionsBuilder.java │ │ │ │ ├── ResponsiveBuilder.java │ │ │ │ ├── SeriesBuilder.java │ │ │ │ ├── StatesBuilder.java │ │ │ │ ├── StrokeBuilder.java │ │ │ │ ├── ThemeBuilder.java │ │ │ │ ├── TitleSubtitleBuilder.java │ │ │ │ ├── TooltipBuilder.java │ │ │ │ ├── XAxisBuilder.java │ │ │ │ └── YAxisBuilder.java │ │ │ ├── chart │ │ │ │ ├── Animations.java │ │ │ │ ├── Brush.java │ │ │ │ ├── DropShadow.java │ │ │ │ ├── Events.java │ │ │ │ ├── Marker.java │ │ │ │ ├── PointAnnotations.java │ │ │ │ ├── Selection.java │ │ │ │ ├── Sparkline.java │ │ │ │ ├── StackType.java │ │ │ │ ├── Toolbar.java │ │ │ │ ├── Type.java │ │ │ │ ├── Zoom.java │ │ │ │ ├── animations │ │ │ │ │ ├── AnimateGradually.java │ │ │ │ │ ├── DynamicAnimation.java │ │ │ │ │ ├── Easing.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── AnimateGraduallyBuilder.java │ │ │ │ │ │ └── DynamicAnimationBuilder.java │ │ │ │ ├── builder │ │ │ │ │ ├── AnimationsBuilder.java │ │ │ │ │ ├── BrushBuilder.java │ │ │ │ │ ├── DropShadowBuilder.java │ │ │ │ │ ├── EventsBuilder.java │ │ │ │ │ ├── MarkerBuilder.java │ │ │ │ │ ├── PointAnnotationsBuilder.java │ │ │ │ │ ├── SelectionBuilder.java │ │ │ │ │ ├── ToolbarBuilder.java │ │ │ │ │ └── ZoomBuilder.java │ │ │ │ ├── selection │ │ │ │ │ ├── Fill.java │ │ │ │ │ ├── Stroke.java │ │ │ │ │ ├── Xaxis.java │ │ │ │ │ ├── Yaxis.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── FillBuilder.java │ │ │ │ │ │ ├── StrokeBuilder.java │ │ │ │ │ │ ├── XaxisBuilder.java │ │ │ │ │ │ └── YaxisBuilder.java │ │ │ │ ├── toolbar │ │ │ │ │ ├── AutoSelected.java │ │ │ │ │ ├── Csv.java │ │ │ │ │ ├── Export.java │ │ │ │ │ ├── Png.java │ │ │ │ │ ├── Svg.java │ │ │ │ │ ├── Tools.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── CsvBuilder.java │ │ │ │ │ │ ├── ExportBuilder.java │ │ │ │ │ │ ├── PngBuilder.java │ │ │ │ │ │ ├── SvgBuilder.java │ │ │ │ │ │ └── ToolsBuilder.java │ │ │ │ └── zoom │ │ │ │ │ ├── Fill.java │ │ │ │ │ ├── Stroke.java │ │ │ │ │ ├── ZoomType.java │ │ │ │ │ ├── ZoomedArea.java │ │ │ │ │ └── builder │ │ │ │ │ ├── FillBuilder.java │ │ │ │ │ ├── StrokeBuilder.java │ │ │ │ │ └── ZoomedAreaBuilder.java │ │ │ ├── datalables │ │ │ │ ├── DropShadow.java │ │ │ │ ├── Style.java │ │ │ │ ├── TextAnchor.java │ │ │ │ └── builder │ │ │ │ │ ├── DropShadowBuilder.java │ │ │ │ │ └── StyleBuilder.java │ │ │ ├── fill │ │ │ │ ├── Gradient.java │ │ │ │ ├── Image.java │ │ │ │ ├── Pattern.java │ │ │ │ └── builder │ │ │ │ │ ├── GradientBuilder.java │ │ │ │ │ ├── ImageBuilder.java │ │ │ │ │ └── PatternBuilder.java │ │ │ ├── grid │ │ │ │ ├── Column.java │ │ │ │ ├── Padding.java │ │ │ │ ├── Position.java │ │ │ │ ├── Row.java │ │ │ │ ├── Xaxis.java │ │ │ │ ├── Yaxis.java │ │ │ │ ├── builder │ │ │ │ │ ├── ColumnBuilder.java │ │ │ │ │ ├── PaddingBuilder.java │ │ │ │ │ └── RowBuilder.java │ │ │ │ ├── xaxis │ │ │ │ │ ├── Lines.java │ │ │ │ │ └── builder │ │ │ │ │ │ └── LinesBuilder.java │ │ │ │ └── yaxis │ │ │ │ │ ├── Lines.java │ │ │ │ │ └── builder │ │ │ │ │ └── LinesBuilder.java │ │ │ ├── legend │ │ │ │ ├── ContainerMargin.java │ │ │ │ ├── HorizontalAlign.java │ │ │ │ ├── ItemMargin.java │ │ │ │ ├── Labels.java │ │ │ │ ├── Markers.java │ │ │ │ ├── OnItemClick.java │ │ │ │ ├── OnItemHover.java │ │ │ │ ├── Position.java │ │ │ │ ├── Shape.java │ │ │ │ └── builder │ │ │ │ │ ├── ContainerMarginBuilder.java │ │ │ │ │ ├── ItemMarginBuilder.java │ │ │ │ │ ├── LabelsBuilder.java │ │ │ │ │ └── MarkersBuilder.java │ │ │ ├── locale │ │ │ │ ├── Options.java │ │ │ │ ├── Toolbar.java │ │ │ │ └── builder │ │ │ │ │ ├── OptionsBuilder.java │ │ │ │ │ └── ToolbarBuilder.java │ │ │ ├── markers │ │ │ │ ├── Hover.java │ │ │ │ ├── Shape.java │ │ │ │ └── builder │ │ │ │ │ └── HoverBuilder.java │ │ │ ├── nodata │ │ │ │ ├── Align.java │ │ │ │ ├── Style.java │ │ │ │ ├── VerticalAlign.java │ │ │ │ └── builder │ │ │ │ │ └── StyleBuilder.java │ │ │ ├── plotoptions │ │ │ │ ├── Bar.java │ │ │ │ ├── Candlestick.java │ │ │ │ ├── Heatmap.java │ │ │ │ ├── Pie.java │ │ │ │ ├── Radar.java │ │ │ │ ├── RadialBar.java │ │ │ │ ├── Treemap.java │ │ │ │ ├── bar │ │ │ │ │ ├── Colors.java │ │ │ │ │ ├── DataLabels.java │ │ │ │ │ ├── Ranges.java │ │ │ │ │ ├── Style.java │ │ │ │ │ ├── Total.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── ColorsBuilder.java │ │ │ │ │ │ ├── DataLabelsBuilder.java │ │ │ │ │ │ ├── RangesBuilder.java │ │ │ │ │ │ ├── StyleBuilder.java │ │ │ │ │ │ └── TotalBuilder.java │ │ │ │ ├── boxplot │ │ │ │ │ ├── BoxPlot.java │ │ │ │ │ └── Colors.java │ │ │ │ ├── builder │ │ │ │ │ ├── BarBuilder.java │ │ │ │ │ ├── CandlestickBuilder.java │ │ │ │ │ ├── HeatmapBuilder.java │ │ │ │ │ ├── PieBuilder.java │ │ │ │ │ ├── RadarBuilder.java │ │ │ │ │ ├── RadialBarBuilder.java │ │ │ │ │ └── TreemapBuilder.java │ │ │ │ ├── candlestick │ │ │ │ │ ├── Colors.java │ │ │ │ │ ├── Wick.java │ │ │ │ │ └── builder │ │ │ │ │ │ └── ColorsBuilder.java │ │ │ │ ├── hollow │ │ │ │ │ └── HollowPosition.java │ │ │ │ ├── pie │ │ │ │ │ ├── DataLabels.java │ │ │ │ │ ├── Donut.java │ │ │ │ │ ├── Labels.java │ │ │ │ │ ├── Name.java │ │ │ │ │ ├── Total.java │ │ │ │ │ ├── Value.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── DonutBuilder.java │ │ │ │ │ │ ├── LabelsBuilder.java │ │ │ │ │ │ ├── NameBuilder.java │ │ │ │ │ │ ├── TotalBuilder.java │ │ │ │ │ │ └── ValueBuilder.java │ │ │ │ ├── polygons │ │ │ │ │ └── Fill.java │ │ │ │ ├── radar │ │ │ │ │ ├── Polygons.java │ │ │ │ │ └── builder │ │ │ │ │ │ └── PolygonsBuilder.java │ │ │ │ ├── radialbar │ │ │ │ │ ├── Hollow.java │ │ │ │ │ ├── Name.java │ │ │ │ │ ├── RadialBarDataLabels.java │ │ │ │ │ ├── Total.java │ │ │ │ │ ├── Track.java │ │ │ │ │ ├── Value.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── HollowBuilder.java │ │ │ │ │ │ ├── NameBuilder.java │ │ │ │ │ │ ├── RadialBarDataLabelsBuilder.java │ │ │ │ │ │ ├── TotalBuilder.java │ │ │ │ │ │ ├── TrackBuilder.java │ │ │ │ │ │ └── ValueBuilder.java │ │ │ │ └── xmap │ │ │ │ │ ├── ColorScale.java │ │ │ │ │ ├── Ranges.java │ │ │ │ │ └── builder │ │ │ │ │ ├── ColorScaleBuilder.java │ │ │ │ │ └── RangesBuilder.java │ │ │ ├── responsive │ │ │ │ ├── Options.java │ │ │ │ └── builder │ │ │ │ │ └── OptionsBuilder.java │ │ │ ├── series │ │ │ │ └── SeriesType.java │ │ │ ├── states │ │ │ │ ├── Active.java │ │ │ │ ├── Filter.java │ │ │ │ ├── Hover.java │ │ │ │ ├── Normal.java │ │ │ │ └── builder │ │ │ │ │ ├── ActiveBuilder.java │ │ │ │ │ └── FilterBuilder.java │ │ │ ├── stroke │ │ │ │ ├── Curve.java │ │ │ │ └── LineCap.java │ │ │ ├── subtitle │ │ │ │ ├── Align.java │ │ │ │ ├── Style.java │ │ │ │ └── builder │ │ │ │ │ └── StyleBuilder.java │ │ │ ├── theme │ │ │ │ ├── Mode.java │ │ │ │ ├── Monochrome.java │ │ │ │ ├── ShadeTo.java │ │ │ │ └── builder │ │ │ │ │ └── MonochromeBuilder.java │ │ │ ├── tooltip │ │ │ │ ├── Fixed.java │ │ │ │ ├── Items.java │ │ │ │ ├── Marker.java │ │ │ │ ├── OnDatasetHover.java │ │ │ │ ├── Style.java │ │ │ │ ├── X.java │ │ │ │ ├── Y.java │ │ │ │ ├── Z.java │ │ │ │ ├── builder │ │ │ │ │ ├── FixedBuilder.java │ │ │ │ │ ├── StyleBuilder.java │ │ │ │ │ ├── XBuilder.java │ │ │ │ │ ├── YBuilder.java │ │ │ │ │ └── ZBuilder.java │ │ │ │ └── y │ │ │ │ │ ├── Title.java │ │ │ │ │ └── builder │ │ │ │ │ └── TitleBuilder.java │ │ │ ├── xaxis │ │ │ │ ├── AxisBorder.java │ │ │ │ ├── AxisTicks.java │ │ │ │ ├── Crosshairs.java │ │ │ │ ├── Labels.java │ │ │ │ ├── TickPlacement.java │ │ │ │ ├── Title.java │ │ │ │ ├── Tooltip.java │ │ │ │ ├── XAxisType.java │ │ │ │ ├── builder │ │ │ │ │ ├── AxisBorderBuilder.java │ │ │ │ │ ├── AxisTicksBuilder.java │ │ │ │ │ ├── CrosshairsBuilder.java │ │ │ │ │ ├── LabelsBuilder.java │ │ │ │ │ ├── TitleBuilder.java │ │ │ │ │ └── TooltipBuilder.java │ │ │ │ ├── crosshairs │ │ │ │ │ ├── Fill.java │ │ │ │ │ ├── Gradient.java │ │ │ │ │ ├── Stroke.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── FillBuilder.java │ │ │ │ │ │ ├── GradientBuilder.java │ │ │ │ │ │ └── StrokeBuilder.java │ │ │ │ ├── labels │ │ │ │ │ ├── DatetimeFormatter.java │ │ │ │ │ ├── Style.java │ │ │ │ │ └── builder │ │ │ │ │ │ ├── DatetimeFormatterBuilder.java │ │ │ │ │ │ └── StyleBuilder.java │ │ │ │ └── title │ │ │ │ │ ├── Style.java │ │ │ │ │ └── builder │ │ │ │ │ └── StyleBuilder.java │ │ │ └── yaxis │ │ │ │ ├── Align.java │ │ │ │ ├── AxisBorder.java │ │ │ │ ├── AxisTicks.java │ │ │ │ ├── Crosshairs.java │ │ │ │ ├── Labels.java │ │ │ │ ├── Stroke.java │ │ │ │ ├── Title.java │ │ │ │ ├── Tooltip.java │ │ │ │ ├── builder │ │ │ │ ├── AxisBorderBuilder.java │ │ │ │ ├── AxisTicksBuilder.java │ │ │ │ ├── CrosshairsBuilder.java │ │ │ │ ├── LabelsBuilder.java │ │ │ │ ├── StrokeBuilder.java │ │ │ │ ├── TitleBuilder.java │ │ │ │ └── TooltipBuilder.java │ │ │ │ ├── labels │ │ │ │ ├── Style.java │ │ │ │ └── builder │ │ │ │ │ └── StyleBuilder.java │ │ │ │ └── title │ │ │ │ ├── Style.java │ │ │ │ └── builder │ │ │ │ └── StyleBuilder.java │ │ │ └── helper │ │ │ ├── ColorCoordinate.java │ │ │ ├── ColorDateCoordinate.java │ │ │ ├── ColorDateTimeCoordinate.java │ │ │ ├── Coordinate.java │ │ │ ├── DateCoordinate.java │ │ │ ├── DateTimeCoordinate.java │ │ │ ├── Formatter.java │ │ │ ├── IntFormatter.java │ │ │ ├── NumberFormatFormatter.java │ │ │ ├── Series.java │ │ │ ├── StringFormatter.java │ │ │ └── SuffixFormatter.java │ └── resources │ │ ├── META-INF │ │ └── resources │ │ │ └── frontend │ │ │ └── com │ │ │ └── github │ │ │ └── appreciated │ │ │ └── apexcharts │ │ │ ├── apexcharts-wrapper-styles.css │ │ │ ├── apexcharts-wrapper.ts │ │ │ └── declarations.d.ts │ │ ├── banner.txt │ │ └── locales │ │ ├── de.json │ │ ├── el.json │ │ ├── en.json │ │ ├── es.json │ │ ├── fi.json │ │ ├── fr.json │ │ ├── hi.json │ │ ├── hr.json │ │ ├── hy.json │ │ ├── id.json │ │ ├── it.json │ │ ├── ko.json │ │ ├── pl.json │ │ ├── pt-br.json │ │ ├── ru.json │ │ ├── se.json │ │ ├── tr.json │ │ └── ua.json └── test │ ├── java │ └── com │ │ └── github │ │ └── appreciated │ │ └── apexcharts │ │ ├── ApexChartsAppShellConfigurator.java │ │ ├── DemoView.java │ │ ├── ExampleHolderView.java │ │ ├── FormLayoutView.java │ │ ├── apigenerator │ │ └── JavaApiGenerator.java │ │ └── examples │ │ ├── ExampleChartGenerator.java │ │ ├── RevenueExample.java │ │ ├── areachart │ │ ├── AreaChartExample.java │ │ └── SparkLineExample.java │ │ ├── bar │ │ ├── HorizontalBarChartExample.java │ │ ├── RangedVerticalBarChartExample.java │ │ └── VerticalBarChartExample.java │ │ ├── bubble │ │ └── BubbleChartExample.java │ │ ├── candlestick │ │ └── CandleStickChartExample.java │ │ ├── donut │ │ └── DonutChartExample.java │ │ ├── event │ │ └── ScatterChartWithEventsExample.java │ │ ├── formatter │ │ ├── IntFormatterExample.java │ │ ├── NumberFormatFormatterExample.java │ │ ├── StringFormatterExample.java │ │ └── SuffixFormatterExample.java │ │ ├── heatmap │ │ ├── HeatmapChartExample.java │ │ └── RangedHeatmapChartExample.java │ │ ├── line │ │ ├── LineChartExample.java │ │ └── LineMultiYAxesChartExample.java │ │ ├── locale │ │ └── LocaleExampleView.java │ │ ├── mixed │ │ ├── LineAndAreaChartExample.java │ │ ├── LineAndColumnAndAreaChartExample.java │ │ ├── LineAndColumnChartExample.java │ │ └── LineAndScatterChartExample.java │ │ ├── pie │ │ └── PieChartExample.java │ │ ├── radar │ │ └── RadarChartExample.java │ │ ├── radialbar │ │ ├── GradientRadialBarChartExample.java │ │ ├── MultiRadialBarChartExample.java │ │ └── RadialBarChartExample.java │ │ ├── scatter │ │ └── ScatterChartExample.java │ │ ├── stacked │ │ └── StackedBarChartExampleView.java │ │ ├── stream │ │ └── StreamingDataExampleView.java │ │ ├── syncronised │ │ ├── SyncronisedLineChartExample1.java │ │ └── SyncronisedLineChartExample2.java │ │ ├── timeline │ │ ├── TimeLineChartCustomColorExample.java │ │ └── TimeLineChartExample.java │ │ ├── tooltip │ │ └── ScatterChartWithCustomTooltipsExample.java │ │ └── update │ │ └── UpdateExample.java │ └── webjar-debug │ ├── META-INF │ └── resources │ │ └── README.txt │ └── README.md ├── tsconfig.json ├── types.d.ts └── vite.config.ts /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **Steps or code example to Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | or if the bug occurs when using a specific chart type 21 | ``` 22 | ApexCharts pieChart = new ApexCharts() 23 | ... 24 | return pieChart; 25 | ``` 26 | 27 | **Expected behavior** 28 | A clear and concise description of what you expected to happen. 29 | 30 | **Screenshots** 31 | If applicable, add screenshots to help explain your problem. 32 | 33 | **Desktop (please complete the following information):** 34 | - OS: [e.g. iOS] 35 | - Browser [e.g. chrome, safari] 36 | - Version [e.g. 22] 37 | 38 | **Smartphone (please complete the following information):** 39 | - Device: [e.g. iPhone6] 40 | - OS: [e.g. iOS8.1] 41 | - Browser [e.g. stock browser, safari] 42 | - Version [e.g. 22] 43 | 44 | **Additional context** 45 | Add any other context about the problem here. 46 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | .vscode 3 | /.idea/ 4 | /target/ 5 | /demo/target/ 6 | /node_modules 7 | package-lock.json 8 | package.json 9 | webpack.config.ts 10 | webpack.generated.js 11 | vite.generated.ts 12 | /src/test/resources/apexcharts.d.ts 13 | 14 | # eclipse 15 | /.settings 16 | .classpath 17 | .project 18 | 19 | # intellij 20 | *.iml 21 | /frontend/generated 22 | /.flow-node-tasks.lock 23 | /src/main/bundles/ 24 | -------------------------------------------------------------------------------- /assembly/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Vaadin-Package-Version: 1 3 | Vaadin-Addon: ${project.build.finalName}.${project.packaging} 4 | Implementation-Vendor: ${organization.name} 5 | Implementation-Title: ${project.name} 6 | Implementation-Version: ${project.version} 7 | -------------------------------------------------------------------------------- /frontend/index.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appreciated/apexcharts-flow/57063d0848d4de2fe317080a6c6463413fc425c4/logo-white.png -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/Annotations.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | import com.github.appreciated.apexcharts.config.annotations.XAxisAnnotations; 4 | import com.github.appreciated.apexcharts.config.annotations.YAxisAnnotations; 5 | import com.github.appreciated.apexcharts.config.chart.PointAnnotations; 6 | 7 | import java.util.List; 8 | 9 | public class Annotations { 10 | private String position; 11 | private List yaxis; 12 | private List xaxis; 13 | private List points; 14 | 15 | public String getPosition() { 16 | return position; 17 | } 18 | 19 | public void setPosition(String position) { 20 | this.position = position; 21 | } 22 | 23 | public List getYaxis() { 24 | return yaxis; 25 | } 26 | 27 | public void setYaxis(List yaxis) { 28 | this.yaxis = yaxis; 29 | } 30 | 31 | public List getXaxis() { 32 | return xaxis; 33 | } 34 | 35 | public void setXaxis(List xaxis) { 36 | this.xaxis = xaxis; 37 | } 38 | 39 | public List getPoints() { 40 | return points; 41 | } 42 | 43 | public void setPoints(List points) { 44 | this.points = points; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/DiscretePoint.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | public class DiscretePoint { 4 | private Double seriesIndex; 5 | private Double dataPointIndex; 6 | private String fillColor; 7 | private String strokeColor; 8 | private Double size; 9 | 10 | public Double getSeriesIndex() { 11 | return seriesIndex; 12 | } 13 | 14 | public void setSeriesIndex(Double seriesIndex) { 15 | this.seriesIndex = seriesIndex; 16 | } 17 | 18 | public Double getDataPointIndex() { 19 | return dataPointIndex; 20 | } 21 | 22 | public void setDataPointIndex(Double dataPointIndex) { 23 | this.dataPointIndex = dataPointIndex; 24 | } 25 | 26 | public String getFillColor() { 27 | return fillColor; 28 | } 29 | 30 | public void setFillColor(String fillColor) { 31 | this.fillColor = fillColor; 32 | } 33 | 34 | public String getStrokeColor() { 35 | return strokeColor; 36 | } 37 | 38 | public void setStrokeColor(String strokeColor) { 39 | this.strokeColor = strokeColor; 40 | } 41 | 42 | public Double getSize() { 43 | return size; 44 | } 45 | 46 | public void setSize(Double size) { 47 | this.size = size; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/ForecastDataPoints.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | 4 | public class ForecastDataPoints { 5 | private Integer count = 0; 6 | 7 | public Integer getCount() { 8 | return count; 9 | } 10 | 11 | public void setCount(Integer count) { 12 | this.count = count; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/Locale.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | import com.github.appreciated.apexcharts.config.locale.Options; 4 | 5 | public class Locale { 6 | String name; 7 | Options options; 8 | 9 | public String getName() { 10 | return name; 11 | } 12 | public void setName(String name) { 13 | this.name = name; 14 | } 15 | public Options getOptions() { 16 | return options; 17 | } 18 | public void setOptions(Options options) { 19 | this.options = options; 20 | } 21 | 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/Responsive.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | import com.github.appreciated.apexcharts.config.responsive.Options; 4 | 5 | public class Responsive { 6 | private Double breakpoint; 7 | private Options options; 8 | 9 | public Responsive() { 10 | } 11 | 12 | public Double getBreakpoint() { 13 | return breakpoint; 14 | } 15 | 16 | public Options getOptions() { 17 | return options; 18 | } 19 | 20 | public void setBreakpoint(Double breakpoint) { 21 | this.breakpoint = breakpoint; 22 | } 23 | 24 | public void setOptions(Options options) { 25 | this.options = options; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/States.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | import com.github.appreciated.apexcharts.config.states.Active; 4 | import com.github.appreciated.apexcharts.config.states.Hover; 5 | import com.github.appreciated.apexcharts.config.states.Normal; 6 | 7 | public class States { 8 | private Normal normal; 9 | private Hover hover; 10 | private Active active; 11 | 12 | 13 | public States() { 14 | } 15 | 16 | public Normal getNormal() { 17 | return normal; 18 | } 19 | 20 | public Hover getHover() { 21 | return hover; 22 | } 23 | 24 | public Active getActive() { 25 | return active; 26 | } 27 | 28 | public void setNormal(Normal normal) { 29 | this.normal = normal; 30 | } 31 | 32 | public void setHover(Hover hover) { 33 | this.hover = hover; 34 | } 35 | 36 | public void setActive(Active active) { 37 | this.active = active; 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/Theme.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config; 2 | 3 | import com.github.appreciated.apexcharts.config.theme.Mode; 4 | import com.github.appreciated.apexcharts.config.theme.Monochrome; 5 | 6 | public class Theme { 7 | private Mode mode; 8 | private String palette; 9 | private Monochrome monochrome; 10 | 11 | 12 | public Theme() { 13 | } 14 | 15 | public Mode getMode() { 16 | return mode; 17 | } 18 | 19 | public String getPalette() { 20 | return palette; 21 | } 22 | 23 | public Monochrome getMonochrome() { 24 | return monochrome; 25 | } 26 | 27 | public void setMode(Mode mode) { 28 | this.mode = mode; 29 | } 30 | 31 | public void setPalette(String palette) { 32 | this.palette = palette; 33 | } 34 | 35 | public void setMonochrome(Monochrome monochrome) { 36 | this.monochrome = monochrome; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/annotations/AnnotationStyle.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.annotations; 2 | 3 | public class AnnotationStyle { 4 | private String background; 5 | private String color; 6 | private String fontSize; 7 | private String cssClass; 8 | private Padding padding; 9 | 10 | public AnnotationStyle() { 11 | } 12 | 13 | public String getBackground() { 14 | return background; 15 | } 16 | 17 | public String getColor() { 18 | return color; 19 | } 20 | 21 | public String getFontSize() { 22 | return fontSize; 23 | } 24 | 25 | public String getCssClass() { 26 | return cssClass; 27 | } 28 | 29 | public Padding getPadding() { 30 | return padding; 31 | } 32 | 33 | public void setBackground(String background) { 34 | this.background = background; 35 | } 36 | 37 | public void setColor(String color) { 38 | this.color = color; 39 | } 40 | 41 | public void setFontSize(String fontSize) { 42 | this.fontSize = fontSize; 43 | } 44 | 45 | public void setCssClass(String cssClass) { 46 | this.cssClass = cssClass; 47 | } 48 | 49 | public void setPadding(Padding padding) { 50 | this.padding = padding; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/annotations/Padding.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.annotations; 2 | 3 | public class Padding { 4 | private Double left; 5 | private Double right; 6 | private Double top; 7 | private Double bottom; 8 | 9 | 10 | public Padding() { 11 | } 12 | 13 | public Double getLeft() { 14 | return left; 15 | } 16 | 17 | public Double getRight() { 18 | return right; 19 | } 20 | 21 | public Double getTop() { 22 | return top; 23 | } 24 | 25 | public Double getBottom() { 26 | return bottom; 27 | } 28 | 29 | public void setLeft(Double left) { 30 | this.left = left; 31 | } 32 | 33 | public void setRight(Double right) { 34 | this.right = right; 35 | } 36 | 37 | public void setTop(Double top) { 38 | this.top = top; 39 | } 40 | 41 | public void setBottom(Double bottom) { 42 | this.bottom = bottom; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/annotations/builder/PaddingBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.annotations.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.annotations.Padding; 4 | 5 | public class PaddingBuilder { 6 | private Double left; 7 | private Double right; 8 | private Double top; 9 | private Double bottom; 10 | 11 | private PaddingBuilder() { 12 | } 13 | 14 | public static PaddingBuilder get() { 15 | return new PaddingBuilder(); 16 | } 17 | 18 | public PaddingBuilder withLeft(Double left) { 19 | this.left = left; 20 | return this; 21 | } 22 | 23 | public PaddingBuilder withRight(Double right) { 24 | this.right = right; 25 | return this; 26 | } 27 | 28 | public PaddingBuilder withTop(Double top) { 29 | this.top = top; 30 | return this; 31 | } 32 | 33 | public PaddingBuilder withBottom(Double bottom) { 34 | this.bottom = bottom; 35 | return this; 36 | } 37 | 38 | public Padding build() { 39 | Padding padding = new Padding(); 40 | padding.setLeft(left); 41 | padding.setRight(right); 42 | padding.setTop(top); 43 | padding.setBottom(bottom); 44 | return padding; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/builder/ForecastDataPointsBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.ForecastDataPoints; 4 | 5 | public class ForecastDataPointsBuilder { 6 | private Integer count; 7 | 8 | public static ForecastDataPointsBuilder get() { 9 | return new ForecastDataPointsBuilder(); 10 | } 11 | 12 | 13 | public ForecastDataPointsBuilder withCount(Integer count) { 14 | this.count = count; 15 | return this; 16 | } 17 | 18 | 19 | public ForecastDataPoints build() { 20 | ForecastDataPoints forecast = new ForecastDataPoints(); 21 | if (count != null) { 22 | forecast.setCount(count); 23 | } 24 | return forecast; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/builder/ResponsiveBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.Responsive; 4 | import com.github.appreciated.apexcharts.config.responsive.Options; 5 | 6 | public class ResponsiveBuilder { 7 | private Double breakpoint; 8 | private Options options; 9 | 10 | private ResponsiveBuilder() { 11 | } 12 | 13 | public static ResponsiveBuilder get() { 14 | return new ResponsiveBuilder(); 15 | } 16 | 17 | public ResponsiveBuilder withBreakpoint(Double breakpoint) { 18 | this.breakpoint = breakpoint; 19 | return this; 20 | } 21 | 22 | public ResponsiveBuilder withOptions(Options options) { 23 | this.options = options; 24 | return this; 25 | } 26 | 27 | public Responsive build() { 28 | Responsive responsive = new Responsive(); 29 | responsive.setBreakpoint(breakpoint); 30 | responsive.setOptions(options); 31 | return responsive; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/builder/SeriesBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.series.SeriesType; 4 | import com.github.appreciated.apexcharts.helper.Series; 5 | 6 | public class SeriesBuilder { 7 | private String name; 8 | private SeriesType type; 9 | private T[] data; 10 | 11 | private SeriesBuilder() { 12 | } 13 | 14 | public static SeriesBuilder get() { 15 | return new SeriesBuilder<>(); 16 | } 17 | 18 | public SeriesBuilder withName(String name) { 19 | this.name = name; 20 | return this; 21 | } 22 | 23 | public SeriesBuilder withType(SeriesType type) { 24 | this.type = type; 25 | return this; 26 | } 27 | 28 | public SeriesBuilder withData(T... data) { 29 | this.data = data; 30 | return this; 31 | } 32 | 33 | public Series build() { 34 | Series series = new Series(); 35 | series.setName(name); 36 | series.setType(type); 37 | series.setData(data); 38 | return series; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/builder/StatesBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.States; 4 | import com.github.appreciated.apexcharts.config.states.Active; 5 | import com.github.appreciated.apexcharts.config.states.Hover; 6 | import com.github.appreciated.apexcharts.config.states.Normal; 7 | 8 | public class StatesBuilder { 9 | private Normal normal; 10 | private Hover hover; 11 | private Active active; 12 | 13 | private StatesBuilder() { 14 | } 15 | 16 | public static StatesBuilder get() { 17 | return new StatesBuilder(); 18 | } 19 | 20 | public StatesBuilder withNormal(Normal normal) { 21 | this.normal = normal; 22 | return this; 23 | } 24 | 25 | public StatesBuilder withHover(Hover hover) { 26 | this.hover = hover; 27 | return this; 28 | } 29 | 30 | public StatesBuilder withActive(Active active) { 31 | this.active = active; 32 | return this; 33 | } 34 | 35 | public States build() { 36 | States states = new States(); 37 | states.setNormal(normal); 38 | states.setHover(hover); 39 | states.setActive(active); 40 | return states; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/builder/ThemeBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.Theme; 4 | import com.github.appreciated.apexcharts.config.theme.Mode; 5 | import com.github.appreciated.apexcharts.config.theme.Monochrome; 6 | 7 | public class ThemeBuilder { 8 | private Mode mode; 9 | private String palette; 10 | private Monochrome monochrome; 11 | 12 | private ThemeBuilder() { 13 | } 14 | 15 | public static ThemeBuilder get() { 16 | return new ThemeBuilder(); 17 | } 18 | 19 | public ThemeBuilder withMode(Mode mode) { 20 | this.mode = mode; 21 | return this; 22 | } 23 | 24 | public ThemeBuilder withPalette(String palette) { 25 | this.palette = palette; 26 | return this; 27 | } 28 | 29 | public ThemeBuilder withMonochrome(Monochrome monochrome) { 30 | this.monochrome = monochrome; 31 | return this; 32 | } 33 | 34 | public Theme build() { 35 | Theme theme = new Theme(); 36 | theme.setMode(mode); 37 | theme.setPalette(palette); 38 | theme.setMonochrome(monochrome); 39 | return theme; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/Brush.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | public class Brush { 4 | private Boolean enabled; 5 | private Boolean autoScaleYaxis; 6 | private String target; 7 | 8 | public Brush() { 9 | } 10 | 11 | public Boolean getEnabled() { 12 | return enabled; 13 | } 14 | 15 | public Boolean getAutoScaleYaxis() { 16 | return autoScaleYaxis; 17 | } 18 | 19 | public String getTarget() { 20 | return target; 21 | } 22 | 23 | public void setEnabled(Boolean enabled) { 24 | this.enabled = enabled; 25 | } 26 | 27 | public void setAutoScaleYaxis(Boolean autoScaleYaxis) { 28 | this.autoScaleYaxis = autoScaleYaxis; 29 | } 30 | 31 | public void setTarget(String target) { 32 | this.target = target; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/DropShadow.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | public class DropShadow { 4 | private Boolean enabled; 5 | private Double top; 6 | private Double left; 7 | private Double blur; 8 | private Double opacity; 9 | 10 | public DropShadow() { 11 | } 12 | 13 | public Boolean getEnabled() { 14 | return enabled; 15 | } 16 | 17 | public Double getTop() { 18 | return top; 19 | } 20 | 21 | public Double getLeft() { 22 | return left; 23 | } 24 | 25 | public Double getBlur() { 26 | return blur; 27 | } 28 | 29 | public Double getOpacity() { 30 | return opacity; 31 | } 32 | 33 | public void setEnabled(Boolean enabled) { 34 | this.enabled = enabled; 35 | } 36 | 37 | public void setTop(Double top) { 38 | this.top = top; 39 | } 40 | 41 | public void setLeft(Double left) { 42 | this.left = left; 43 | } 44 | 45 | public void setBlur(Double blur) { 46 | this.blur = blur; 47 | } 48 | 49 | public void setOpacity(Double opacity) { 50 | this.opacity = opacity; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/Sparkline.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | public class Sparkline { 4 | private Boolean enabled; 5 | 6 | public Sparkline(Boolean enabled) { 7 | this.enabled = enabled; 8 | } 9 | 10 | public Boolean getEnabled() { 11 | return enabled; 12 | } 13 | 14 | public void setEnabled(Boolean enabled) { 15 | this.enabled = enabled; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/StackType.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum StackType { 6 | NORMAL("normal"), 7 | FULL("100%"); 8 | 9 | private final String value; 10 | 11 | StackType(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/Toolbar.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.toolbar.AutoSelected; 4 | import com.github.appreciated.apexcharts.config.chart.toolbar.Export; 5 | import com.github.appreciated.apexcharts.config.chart.toolbar.Tools; 6 | 7 | public class Toolbar { 8 | private Boolean show; 9 | private Tools tools; 10 | private Export export; 11 | private AutoSelected autoSelected; 12 | 13 | 14 | public Toolbar() { 15 | } 16 | 17 | public Boolean getShow() { 18 | return show; 19 | } 20 | 21 | public Tools getTools() { 22 | return tools; 23 | } 24 | 25 | public Export getExport() { 26 | return export; 27 | } 28 | 29 | public AutoSelected getAutoSelected() { 30 | return autoSelected; 31 | } 32 | 33 | public void setShow(Boolean show) { 34 | this.show = show; 35 | } 36 | 37 | public void setTools(Tools tools) { 38 | this.tools = tools; 39 | } 40 | 41 | public void setExport(Export export) { 42 | this.export = export; 43 | } 44 | 45 | public void setAutoSelected(AutoSelected autoSelected) { 46 | this.autoSelected = autoSelected; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/Type.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Type { 6 | LINE("line"), 7 | AREA("area"), 8 | BAR("bar"), 9 | HISTOGRAM("histogram"), 10 | PIE("pie"), 11 | DONUT("donut"), 12 | RADIALBAR("radialBar"), 13 | SCATTER("scatter"), 14 | BUBBLE("bubble"), 15 | HEATMAP("heatmap"), 16 | CANDLESTICK("candlestick"), 17 | RADAR("radar"), 18 | RANGEBAR("rangeBar"), 19 | BOXPLOT("boxPlot"), 20 | TREEMAP("treemap"); 21 | 22 | private final String value; 23 | 24 | Type(final String value) { 25 | this.value = value; 26 | } 27 | 28 | @JsonValue 29 | public String getValue() { 30 | return value; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/Zoom.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.zoom.ZoomType; 4 | import com.github.appreciated.apexcharts.config.chart.zoom.ZoomedArea; 5 | 6 | public class Zoom { 7 | private Boolean enabled; 8 | private ZoomType type; 9 | private ZoomedArea zoomedArea; 10 | private Boolean autoScaleYaxis; 11 | 12 | 13 | public Zoom() { 14 | } 15 | 16 | public Boolean getEnabled() { 17 | return enabled; 18 | } 19 | 20 | public ZoomType getType() { 21 | return type; 22 | } 23 | 24 | public ZoomedArea getZoomedArea() { 25 | return zoomedArea; 26 | } 27 | 28 | public Boolean getAutoScaleYaxis() { 29 | return autoScaleYaxis; 30 | } 31 | 32 | public void setEnabled(Boolean enabled) { 33 | this.enabled = enabled; 34 | } 35 | 36 | public void setType(ZoomType type) { 37 | this.type = type; 38 | } 39 | 40 | public void setZoomedArea(ZoomedArea zoomedArea) { 41 | this.zoomedArea = zoomedArea; 42 | } 43 | 44 | public void setAutoScaleYaxis(final Boolean autoScaleYaxis) { 45 | this.autoScaleYaxis = autoScaleYaxis; 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/animations/AnimateGradually.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.animations; 2 | 3 | public class AnimateGradually { 4 | private Boolean enabled; 5 | private Number delay; 6 | 7 | 8 | public AnimateGradually() { 9 | } 10 | 11 | public Boolean getEnabled() { 12 | return enabled; 13 | } 14 | 15 | public Number getDelay() { 16 | return delay; 17 | } 18 | 19 | public void setEnabled(Boolean enabled) { 20 | this.enabled = enabled; 21 | } 22 | 23 | public void setDelay(Number delay) { 24 | this.delay = delay; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/animations/DynamicAnimation.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.animations; 2 | 3 | public class DynamicAnimation { 4 | private Boolean enabled; 5 | private Number speed; 6 | 7 | 8 | public DynamicAnimation() { 9 | } 10 | 11 | public Boolean getEnabled() { 12 | return enabled; 13 | } 14 | 15 | public Number getSpeed() { 16 | return speed; 17 | } 18 | 19 | public void setEnabled(Boolean enabled) { 20 | this.enabled = enabled; 21 | } 22 | 23 | public void setSpeed(Number speed) { 24 | this.speed = speed; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/animations/Easing.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.animations; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Easing { 6 | LINEAR("linear"), 7 | EASEIN("easein"), 8 | EASEOUT("easeout"), 9 | EASEINOUT("easeinout"); 10 | 11 | private final String value; 12 | 13 | Easing(final String value) { 14 | this.value = value; 15 | } 16 | 17 | @JsonValue 18 | public String getValue() { 19 | return value; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/animations/builder/AnimateGraduallyBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.animations.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.animations.AnimateGradually; 4 | 5 | public class AnimateGraduallyBuilder { 6 | private Boolean enabled; 7 | private Number delay; 8 | 9 | private AnimateGraduallyBuilder() { 10 | } 11 | 12 | public static AnimateGraduallyBuilder get() { 13 | return new AnimateGraduallyBuilder(); 14 | } 15 | 16 | public AnimateGraduallyBuilder withEnabled(Boolean enabled) { 17 | this.enabled = enabled; 18 | return this; 19 | } 20 | 21 | public AnimateGraduallyBuilder withDelay(Number delay) { 22 | this.delay = delay; 23 | return this; 24 | } 25 | 26 | public AnimateGradually build() { 27 | AnimateGradually animateGradually = new AnimateGradually(); 28 | animateGradually.setEnabled(enabled); 29 | animateGradually.setDelay(delay); 30 | return animateGradually; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/animations/builder/DynamicAnimationBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.animations.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.animations.DynamicAnimation; 4 | 5 | public class DynamicAnimationBuilder { 6 | private Boolean enabled; 7 | private Number speed; 8 | 9 | private DynamicAnimationBuilder() { 10 | } 11 | 12 | public static DynamicAnimationBuilder get() { 13 | return new DynamicAnimationBuilder(); 14 | } 15 | 16 | public DynamicAnimationBuilder withEnabled(Boolean enabled) { 17 | this.enabled = enabled; 18 | return this; 19 | } 20 | 21 | public DynamicAnimationBuilder withSpeed(Number speed) { 22 | this.speed = speed; 23 | return this; 24 | } 25 | 26 | public DynamicAnimation build() { 27 | DynamicAnimation dynamicAnimation = new DynamicAnimation(); 28 | dynamicAnimation.setEnabled(enabled); 29 | dynamicAnimation.setSpeed(speed); 30 | return dynamicAnimation; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/builder/BrushBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.Brush; 4 | 5 | public class BrushBuilder { 6 | private Boolean enabled; 7 | private Boolean autoScaleYaxis; 8 | private String target; 9 | 10 | private BrushBuilder() { 11 | } 12 | 13 | public static BrushBuilder get() { 14 | return new BrushBuilder(); 15 | } 16 | 17 | public BrushBuilder withEnabled(Boolean enabled) { 18 | this.enabled = enabled; 19 | return this; 20 | } 21 | 22 | public BrushBuilder withAutoScaleYaxis(Boolean autoScaleYaxis) { 23 | this.autoScaleYaxis = autoScaleYaxis; 24 | return this; 25 | } 26 | 27 | public BrushBuilder withTarget(String target) { 28 | this.target = target; 29 | return this; 30 | } 31 | 32 | public Brush build() { 33 | Brush brush = new Brush(); 34 | brush.setEnabled(enabled); 35 | brush.setAutoScaleYaxis(autoScaleYaxis); 36 | brush.setTarget(target); 37 | return brush; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/Fill.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection; 2 | 3 | public class Fill { 4 | private String color; 5 | private Double opacity; 6 | 7 | 8 | public Fill() { 9 | } 10 | 11 | public String getColor() { 12 | return color; 13 | } 14 | 15 | public Double getOpacity() { 16 | return opacity; 17 | } 18 | 19 | public void setColor(String color) { 20 | this.color = color; 21 | } 22 | 23 | public void setOpacity(Double opacity) { 24 | this.opacity = opacity; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/Stroke.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection; 2 | 3 | public class Stroke { 4 | private Double width; 5 | private String color; 6 | private Double opacity; 7 | private Double dashArray; 8 | 9 | 10 | public Stroke() { 11 | } 12 | 13 | public Double getWidth() { 14 | return width; 15 | } 16 | 17 | public String getColor() { 18 | return color; 19 | } 20 | 21 | public Double getOpacity() { 22 | return opacity; 23 | } 24 | 25 | public Double getDashArray() { 26 | return dashArray; 27 | } 28 | 29 | public void setWidth(Double width) { 30 | this.width = width; 31 | } 32 | 33 | public void setColor(String color) { 34 | this.color = color; 35 | } 36 | 37 | public void setOpacity(Double opacity) { 38 | this.opacity = opacity; 39 | } 40 | 41 | public void setDashArray(Double dashArray) { 42 | this.dashArray = dashArray; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/Xaxis.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection; 2 | 3 | public class Xaxis { 4 | private Double min; 5 | private Double max; 6 | 7 | 8 | public Xaxis() { 9 | } 10 | 11 | public Double getMin() { 12 | return min; 13 | } 14 | 15 | public Double getMax() { 16 | return max; 17 | } 18 | 19 | public void setMin(Double min) { 20 | this.min = min; 21 | } 22 | 23 | public void setMax(Double max) { 24 | this.max = max; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/Yaxis.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection; 2 | 3 | public class Yaxis { 4 | private Double min; 5 | private Double max; 6 | 7 | 8 | public Yaxis() { 9 | } 10 | 11 | public Double getMin() { 12 | return min; 13 | } 14 | 15 | public Double getMax() { 16 | return max; 17 | } 18 | 19 | public void setMin(Double min) { 20 | this.min = min; 21 | } 22 | 23 | public void setMax(Double max) { 24 | this.max = max; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/builder/FillBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.selection.Fill; 4 | 5 | public class FillBuilder { 6 | private String color; 7 | private Double opacity; 8 | 9 | private FillBuilder() { 10 | } 11 | 12 | public static FillBuilder get() { 13 | return new FillBuilder(); 14 | } 15 | 16 | public FillBuilder withColor(String color) { 17 | this.color = color; 18 | return this; 19 | } 20 | 21 | public FillBuilder withOpacity(Double opacity) { 22 | this.opacity = opacity; 23 | return this; 24 | } 25 | 26 | public Fill build() { 27 | Fill fill = new Fill(); 28 | fill.setColor(color); 29 | fill.setOpacity(opacity); 30 | return fill; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/builder/StrokeBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.selection.Stroke; 4 | 5 | public class StrokeBuilder { 6 | private Double width; 7 | private String color; 8 | private Double opacity; 9 | private Double dashArray; 10 | 11 | private StrokeBuilder() { 12 | } 13 | 14 | public static StrokeBuilder get() { 15 | return new StrokeBuilder(); 16 | } 17 | 18 | public StrokeBuilder withWidth(Double width) { 19 | this.width = width; 20 | return this; 21 | } 22 | 23 | public StrokeBuilder withColor(String color) { 24 | this.color = color; 25 | return this; 26 | } 27 | 28 | public StrokeBuilder withOpacity(Double opacity) { 29 | this.opacity = opacity; 30 | return this; 31 | } 32 | 33 | public StrokeBuilder withDashArray(Double dashArray) { 34 | this.dashArray = dashArray; 35 | return this; 36 | } 37 | 38 | public Stroke build() { 39 | Stroke stroke = new Stroke(); 40 | stroke.setWidth(width); 41 | stroke.setColor(color); 42 | stroke.setOpacity(opacity); 43 | stroke.setDashArray(dashArray); 44 | return stroke; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/builder/XaxisBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.selection.Xaxis; 4 | 5 | public class XaxisBuilder { 6 | private Double min; 7 | private Double max; 8 | 9 | private XaxisBuilder() { 10 | } 11 | 12 | public static XaxisBuilder get() { 13 | return new XaxisBuilder(); 14 | } 15 | 16 | public XaxisBuilder withMin(Double min) { 17 | this.min = min; 18 | return this; 19 | } 20 | 21 | public XaxisBuilder withMax(Double max) { 22 | this.max = max; 23 | return this; 24 | } 25 | 26 | public Xaxis build() { 27 | Xaxis xaxis = new Xaxis(); 28 | xaxis.setMin(min); 29 | xaxis.setMax(max); 30 | return xaxis; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/selection/builder/YaxisBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.selection.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.selection.Yaxis; 4 | 5 | public class YaxisBuilder { 6 | private Double min; 7 | private Double max; 8 | 9 | private YaxisBuilder() { 10 | } 11 | 12 | public static YaxisBuilder get() { 13 | return new YaxisBuilder(); 14 | } 15 | 16 | public YaxisBuilder withMin(Double min) { 17 | this.min = min; 18 | return this; 19 | } 20 | 21 | public YaxisBuilder withMax(Double max) { 22 | this.max = max; 23 | return this; 24 | } 25 | 26 | public Yaxis build() { 27 | Yaxis yaxis = new Yaxis(); 28 | yaxis.setMin(min); 29 | yaxis.setMax(max); 30 | return yaxis; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/AutoSelected.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum AutoSelected { 6 | ZOOM("zoom"), 7 | SELECTION("selection"), 8 | PAN("pan"); 9 | 10 | private final String value; 11 | 12 | AutoSelected(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/Export.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar; 2 | 3 | public class Export { 4 | private Csv csv; 5 | private Svg svg; 6 | private Png png; 7 | 8 | public Export() { 9 | } 10 | 11 | public Csv getCsv() { 12 | return csv; 13 | } 14 | 15 | public void setCsv(Csv csv) { 16 | this.csv = csv; 17 | } 18 | 19 | public Svg getSvg() { 20 | return svg; 21 | } 22 | 23 | public void setSvg(Svg svg) { 24 | this.svg = svg; 25 | } 26 | 27 | public Png getPng() { 28 | return png; 29 | } 30 | 31 | public void setPng(Png png) { 32 | this.png = png; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/Png.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar; 2 | 3 | public class Png { 4 | private String filename; 5 | 6 | public Png() { 7 | } 8 | 9 | public String getFilename() { 10 | return filename; 11 | } 12 | 13 | public void setFilename(String filename) { 14 | this.filename = filename; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/Svg.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar; 2 | 3 | import java.time.LocalDateTime; 4 | 5 | public class Svg { 6 | private String filename; 7 | 8 | public Svg() { 9 | } 10 | 11 | public String getFilename() { 12 | return filename; 13 | } 14 | 15 | public void setFilename(String filename) { 16 | this.filename = filename; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/builder/ExportBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.toolbar.*; 4 | 5 | public class ExportBuilder { 6 | private Csv csv; 7 | private Svg svg; 8 | private Png png; 9 | 10 | private ExportBuilder() { 11 | } 12 | 13 | public static ExportBuilder get() { 14 | return new ExportBuilder(); 15 | } 16 | 17 | public ExportBuilder withCsv(Csv csv) { 18 | this.csv = csv; 19 | return this; 20 | } 21 | 22 | public ExportBuilder withSvg(Svg svg) { 23 | this.svg = svg; 24 | return this; 25 | } 26 | 27 | public ExportBuilder withPng(Png png) { 28 | this.png = png; 29 | return this; 30 | } 31 | 32 | public Export build() { 33 | Export export = new Export(); 34 | export.setCsv(csv); 35 | export.setSvg(svg); 36 | export.setPng(png); 37 | return export; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/builder/PngBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.toolbar.Png; 4 | 5 | public class PngBuilder { 6 | private String filename; 7 | 8 | private PngBuilder() { 9 | } 10 | 11 | public static PngBuilder get() { 12 | return new PngBuilder(); 13 | } 14 | 15 | public PngBuilder withFilename(String filename) { 16 | this.filename = filename; 17 | return this; 18 | } 19 | 20 | public Png build() { 21 | Png png = new Png(); 22 | png.setFilename(filename); 23 | return png; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/toolbar/builder/SvgBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.toolbar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.toolbar.Svg; 4 | 5 | public class SvgBuilder { 6 | private String filename; 7 | 8 | private SvgBuilder() { 9 | } 10 | 11 | public static SvgBuilder get() { 12 | return new SvgBuilder(); 13 | } 14 | 15 | public SvgBuilder withFilename(String filename) { 16 | this.filename = filename; 17 | return this; 18 | } 19 | 20 | 21 | public Svg build() { 22 | Svg svg = new Svg(); 23 | svg.setFilename(filename); 24 | return svg; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/Fill.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom; 2 | 3 | public class Fill { 4 | private String color; 5 | private Number opacity; 6 | 7 | 8 | public Fill() { 9 | } 10 | 11 | public String getColor() { 12 | return color; 13 | } 14 | 15 | public Number getOpacity() { 16 | return opacity; 17 | } 18 | 19 | public void setColor(String color) { 20 | this.color = color; 21 | } 22 | 23 | public void setOpacity(Number opacity) { 24 | this.opacity = opacity; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/Stroke.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom; 2 | 3 | public class Stroke { 4 | private String color; 5 | private Double opacity; 6 | private Double width; 7 | 8 | 9 | public Stroke() { 10 | } 11 | 12 | public String getColor() { 13 | return color; 14 | } 15 | 16 | public Double getOpacity() { 17 | return opacity; 18 | } 19 | 20 | public Double getWidth() { 21 | return width; 22 | } 23 | 24 | public void setColor(String color) { 25 | this.color = color; 26 | } 27 | 28 | public void setOpacity(Double opacity) { 29 | this.opacity = opacity; 30 | } 31 | 32 | public void setWidth(Double width) { 33 | this.width = width; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/ZoomType.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum ZoomType { 6 | X("x"), 7 | Y("y"), 8 | XY("xy"); 9 | 10 | private final String value; 11 | 12 | ZoomType(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/ZoomedArea.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom; 2 | 3 | public class ZoomedArea { 4 | private Fill fill; 5 | private Stroke stroke; 6 | 7 | 8 | public ZoomedArea() { 9 | } 10 | 11 | public Fill getFill() { 12 | return fill; 13 | } 14 | 15 | public Stroke getStroke() { 16 | return stroke; 17 | } 18 | 19 | public void setFill(Fill fill) { 20 | this.fill = fill; 21 | } 22 | 23 | public void setStroke(Stroke stroke) { 24 | this.stroke = stroke; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/builder/FillBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.zoom.Fill; 4 | 5 | public class FillBuilder { 6 | private String color; 7 | private Number opacity; 8 | 9 | private FillBuilder() { 10 | } 11 | 12 | public static FillBuilder get() { 13 | return new FillBuilder(); 14 | } 15 | 16 | public FillBuilder withColor(String color) { 17 | this.color = color; 18 | return this; 19 | } 20 | 21 | public FillBuilder withOpacity(Number opacity) { 22 | this.opacity = opacity; 23 | return this; 24 | } 25 | 26 | public Fill build() { 27 | Fill fill = new Fill(); 28 | fill.setColor(color); 29 | fill.setOpacity(opacity); 30 | return fill; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/builder/StrokeBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.zoom.Stroke; 4 | 5 | public class StrokeBuilder { 6 | private String color; 7 | private Double opacity; 8 | private Double width; 9 | 10 | private StrokeBuilder() { 11 | } 12 | 13 | public static StrokeBuilder get() { 14 | return new StrokeBuilder(); 15 | } 16 | 17 | public StrokeBuilder withColor(String color) { 18 | this.color = color; 19 | return this; 20 | } 21 | 22 | public StrokeBuilder withOpacity(Double opacity) { 23 | this.opacity = opacity; 24 | return this; 25 | } 26 | 27 | public StrokeBuilder withWidth(Double width) { 28 | this.width = width; 29 | return this; 30 | } 31 | 32 | public Stroke build() { 33 | Stroke stroke = new Stroke(); 34 | stroke.setColor(color); 35 | stroke.setOpacity(opacity); 36 | stroke.setWidth(width); 37 | return stroke; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/chart/zoom/builder/ZoomedAreaBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.chart.zoom.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.chart.zoom.Fill; 4 | import com.github.appreciated.apexcharts.config.chart.zoom.Stroke; 5 | import com.github.appreciated.apexcharts.config.chart.zoom.ZoomedArea; 6 | 7 | public class ZoomedAreaBuilder { 8 | private Fill fill; 9 | private Stroke stroke; 10 | 11 | private ZoomedAreaBuilder() { 12 | } 13 | 14 | public static ZoomedAreaBuilder get() { 15 | return new ZoomedAreaBuilder(); 16 | } 17 | 18 | public ZoomedAreaBuilder withFill(Fill fill) { 19 | this.fill = fill; 20 | return this; 21 | } 22 | 23 | public ZoomedAreaBuilder withStroke(Stroke stroke) { 24 | this.stroke = stroke; 25 | return this; 26 | } 27 | 28 | public ZoomedArea build() { 29 | ZoomedArea zoomedArea = new ZoomedArea(); 30 | zoomedArea.setFill(fill); 31 | zoomedArea.setStroke(stroke); 32 | return zoomedArea; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/datalables/DropShadow.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.datalables; 2 | 3 | public class DropShadow { 4 | private Boolean enable; 5 | private Double top; 6 | private Double left; 7 | private Double blur; 8 | private Double opacity; 9 | 10 | public DropShadow() { 11 | } 12 | 13 | public Boolean getEnable() { 14 | return enable; 15 | } 16 | 17 | public Double getTop() { 18 | return top; 19 | } 20 | 21 | public Double getLeft() { 22 | return left; 23 | } 24 | 25 | public Double getBlur() { 26 | return blur; 27 | } 28 | 29 | public Double getOpacity() { 30 | return opacity; 31 | } 32 | 33 | public void setEnable(Boolean enable) { 34 | this.enable = enable; 35 | } 36 | 37 | public void setTop(Double top) { 38 | this.top = top; 39 | } 40 | 41 | public void setLeft(Double left) { 42 | this.left = left; 43 | } 44 | 45 | public void setBlur(Double blur) { 46 | this.blur = blur; 47 | } 48 | 49 | public void setOpacity(Double opacity) { 50 | this.opacity = opacity; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/datalables/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.datalables; 2 | 3 | import java.util.List; 4 | 5 | public class Style { 6 | private String fontSize; 7 | private String fontFamily; 8 | private List colors; 9 | 10 | 11 | public Style() { 12 | } 13 | 14 | public String getFontSize() { 15 | return fontSize; 16 | } 17 | 18 | public String getFontFamily() { 19 | return fontFamily; 20 | } 21 | 22 | public List getColors() { 23 | return colors; 24 | } 25 | 26 | public void setFontSize(String fontSize) { 27 | this.fontSize = fontSize; 28 | } 29 | 30 | public void setFontFamily(String fontFamily) { 31 | this.fontFamily = fontFamily; 32 | } 33 | 34 | public void setColors(List colors) { 35 | this.colors = colors; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/datalables/TextAnchor.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.datalables; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum TextAnchor { 6 | START("start"), 7 | MIDDLE("middle"), 8 | END("end"); 9 | 10 | private final String value; 11 | 12 | TextAnchor(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/datalables/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.datalables.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.datalables.Style; 4 | 5 | import java.util.List; 6 | 7 | public class StyleBuilder { 8 | private String fontSize; 9 | private String fontFamily; 10 | private List colors; 11 | 12 | private StyleBuilder() { 13 | } 14 | 15 | public static StyleBuilder get() { 16 | return new StyleBuilder(); 17 | } 18 | 19 | public StyleBuilder withFontSize(String fontSize) { 20 | this.fontSize = fontSize; 21 | return this; 22 | } 23 | 24 | public StyleBuilder withFontFamily(String fontFamily) { 25 | this.fontFamily = fontFamily; 26 | return this; 27 | } 28 | 29 | public StyleBuilder withColors(List colors) { 30 | this.colors = colors; 31 | return this; 32 | } 33 | 34 | public Style build() { 35 | Style style = new Style(); 36 | style.setFontSize(fontSize); 37 | style.setFontFamily(fontFamily); 38 | style.setColors(colors); 39 | return style; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/fill/Image.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.fill; 2 | 3 | import java.util.List; 4 | 5 | public class Image { 6 | private List src; 7 | private Double width; 8 | private Double height; 9 | 10 | 11 | public Image() { 12 | } 13 | 14 | public List getSrc() { 15 | return src; 16 | } 17 | 18 | public Double getWidth() { 19 | return width; 20 | } 21 | 22 | public Double getHeight() { 23 | return height; 24 | } 25 | 26 | public void setSrc(List src) { 27 | this.src = src; 28 | } 29 | 30 | public void setWidth(Double width) { 31 | this.width = width; 32 | } 33 | 34 | public void setHeight(Double height) { 35 | this.height = height; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/fill/Pattern.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.fill; 2 | 3 | public class Pattern { 4 | private String style; 5 | private Double width; 6 | private Double height; 7 | private Double strokeWidth; 8 | 9 | 10 | public Pattern() { 11 | } 12 | 13 | public String getStyle() { 14 | return style; 15 | } 16 | 17 | public Double getWidth() { 18 | return width; 19 | } 20 | 21 | public Double getHeight() { 22 | return height; 23 | } 24 | 25 | public Double getStrokeWidth() { 26 | return strokeWidth; 27 | } 28 | 29 | public void setStyle(String style) { 30 | this.style = style; 31 | } 32 | 33 | public void setWidth(Double width) { 34 | this.width = width; 35 | } 36 | 37 | public void setHeight(Double height) { 38 | this.height = height; 39 | } 40 | 41 | public void setStrokeWidth(Double strokeWidth) { 42 | this.strokeWidth = strokeWidth; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/fill/builder/ImageBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.fill.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.fill.Image; 4 | 5 | import java.util.List; 6 | 7 | public class ImageBuilder { 8 | private List src; 9 | private Double width; 10 | private Double height; 11 | 12 | private ImageBuilder() { 13 | } 14 | 15 | public static ImageBuilder get() { 16 | return new ImageBuilder(); 17 | } 18 | 19 | public ImageBuilder withSrc(List src) { 20 | this.src = src; 21 | return this; 22 | } 23 | 24 | public ImageBuilder withWidth(Double width) { 25 | this.width = width; 26 | return this; 27 | } 28 | 29 | public ImageBuilder withHeight(Double height) { 30 | this.height = height; 31 | return this; 32 | } 33 | 34 | public Image build() { 35 | Image image = new Image(); 36 | image.setSrc(src); 37 | image.setWidth(width); 38 | image.setHeight(height); 39 | return image; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/fill/builder/PatternBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.fill.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.fill.Pattern; 4 | 5 | public class PatternBuilder { 6 | private String style; 7 | private Double width; 8 | private Double height; 9 | private Double strokeWidth; 10 | 11 | private PatternBuilder() { 12 | } 13 | 14 | public static PatternBuilder get() { 15 | return new PatternBuilder(); 16 | } 17 | 18 | public PatternBuilder withStyle(String style) { 19 | this.style = style; 20 | return this; 21 | } 22 | 23 | public PatternBuilder withWidth(Double width) { 24 | this.width = width; 25 | return this; 26 | } 27 | 28 | public PatternBuilder withHeight(Double height) { 29 | this.height = height; 30 | return this; 31 | } 32 | 33 | public PatternBuilder withStrokeWidth(Double strokeWidth) { 34 | this.strokeWidth = strokeWidth; 35 | return this; 36 | } 37 | 38 | public Pattern build() { 39 | Pattern pattern = new Pattern(); 40 | pattern.setStyle(style); 41 | pattern.setWidth(width); 42 | pattern.setHeight(height); 43 | pattern.setStrokeWidth(strokeWidth); 44 | return pattern; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/Column.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid; 2 | 3 | import java.util.List; 4 | 5 | public class Column { 6 | private List colors; 7 | private Double opacity; 8 | 9 | 10 | public Column() { 11 | } 12 | 13 | public List getColors() { 14 | return colors; 15 | } 16 | 17 | public Double getOpacity() { 18 | return opacity; 19 | } 20 | 21 | public void setColors(List colors) { 22 | this.colors = colors; 23 | } 24 | 25 | public void setOpacity(Double opacity) { 26 | this.opacity = opacity; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/Padding.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid; 2 | 3 | public class Padding { 4 | private Double top; 5 | private Double right; 6 | private Double bottom; 7 | private Double left; 8 | 9 | 10 | public Padding() { 11 | } 12 | 13 | public Double getTop() { 14 | return top; 15 | } 16 | 17 | public Double getRight() { 18 | return right; 19 | } 20 | 21 | public Double getBottom() { 22 | return bottom; 23 | } 24 | 25 | public Double getLeft() { 26 | return left; 27 | } 28 | 29 | public void setTop(Double top) { 30 | this.top = top; 31 | } 32 | 33 | public void setRight(Double right) { 34 | this.right = right; 35 | } 36 | 37 | public void setBottom(Double bottom) { 38 | this.bottom = bottom; 39 | } 40 | 41 | public void setLeft(Double left) { 42 | this.left = left; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/Position.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Position { 6 | FRONT("front"), 7 | BACK("back"); 8 | 9 | private final String value; 10 | 11 | Position(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/Row.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid; 2 | 3 | import java.util.List; 4 | 5 | public class Row { 6 | private List colors; 7 | private Double opacity; 8 | 9 | 10 | public Row() { 11 | } 12 | 13 | public List getColors() { 14 | return colors; 15 | } 16 | 17 | public Double getOpacity() { 18 | return opacity; 19 | } 20 | 21 | public void setColors(List colors) { 22 | this.colors = colors; 23 | } 24 | 25 | public void setOpacity(Double opacity) { 26 | this.opacity = opacity; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/Xaxis.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.xaxis.Lines; 4 | 5 | public class Xaxis { 6 | private Lines lines; 7 | 8 | public Lines getLines() { 9 | return lines; 10 | } 11 | 12 | public void setLines(Lines lines) { 13 | this.lines = lines; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/Yaxis.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.yaxis.Lines; 4 | 5 | public class Yaxis { 6 | private Lines lines; 7 | 8 | public Lines getLines() { 9 | return lines; 10 | } 11 | 12 | public void setLines(Lines lines) { 13 | this.lines = lines; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/builder/ColumnBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.Column; 4 | 5 | import java.util.List; 6 | 7 | public class ColumnBuilder { 8 | private List colors; 9 | private Double opacity; 10 | 11 | private ColumnBuilder() { 12 | } 13 | 14 | public static ColumnBuilder get() { 15 | return new ColumnBuilder(); 16 | } 17 | 18 | public ColumnBuilder withColors(List colors) { 19 | this.colors = colors; 20 | return this; 21 | } 22 | 23 | public ColumnBuilder withOpacity(Double opacity) { 24 | this.opacity = opacity; 25 | return this; 26 | } 27 | 28 | public Column build() { 29 | Column column = new Column(); 30 | column.setColors(colors); 31 | column.setOpacity(opacity); 32 | return column; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/builder/PaddingBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.Padding; 4 | 5 | public class PaddingBuilder { 6 | private Double top; 7 | private Double right; 8 | private Double bottom; 9 | private Double left; 10 | 11 | private PaddingBuilder() { 12 | } 13 | 14 | public static PaddingBuilder get() { 15 | return new PaddingBuilder(); 16 | } 17 | 18 | public PaddingBuilder withTop(Double top) { 19 | this.top = top; 20 | return this; 21 | } 22 | 23 | public PaddingBuilder withRight(Double right) { 24 | this.right = right; 25 | return this; 26 | } 27 | 28 | public PaddingBuilder withBottom(Double bottom) { 29 | this.bottom = bottom; 30 | return this; 31 | } 32 | 33 | public PaddingBuilder withLeft(Double left) { 34 | this.left = left; 35 | return this; 36 | } 37 | 38 | public Padding build() { 39 | Padding padding = new Padding(); 40 | padding.setTop(top); 41 | padding.setRight(right); 42 | padding.setBottom(bottom); 43 | padding.setLeft(left); 44 | return padding; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/builder/RowBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.Row; 4 | 5 | import java.util.Arrays; 6 | import java.util.List; 7 | 8 | public class RowBuilder { 9 | private List colors; 10 | private Double opacity; 11 | 12 | private RowBuilder() { 13 | } 14 | 15 | public static RowBuilder get() { 16 | return new RowBuilder(); 17 | } 18 | 19 | public RowBuilder withColors(List colors) { 20 | this.colors = colors; 21 | return this; 22 | } 23 | 24 | public RowBuilder withColors(String... colors) { 25 | this.colors = Arrays.asList(colors); 26 | return this; 27 | } 28 | 29 | public RowBuilder withOpacity(Double opacity) { 30 | this.opacity = opacity; 31 | return this; 32 | } 33 | 34 | public Row build() { 35 | Row row = new Row(); 36 | row.setColors(colors); 37 | row.setOpacity(opacity); 38 | return row; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/xaxis/Lines.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.xaxis; 2 | 3 | public class Lines { 4 | private Boolean show; 5 | private Double offsetX; 6 | private Double offsetY; 7 | 8 | 9 | public Lines() { 10 | } 11 | 12 | public Boolean getShow() { 13 | return show; 14 | } 15 | 16 | public Double getOffsetX() { 17 | return offsetX; 18 | } 19 | 20 | public Double getOffsetY() { 21 | return offsetY; 22 | } 23 | 24 | public void setShow(Boolean show) { 25 | this.show = show; 26 | } 27 | 28 | public void setOffsetX(Double offsetX) { 29 | this.offsetX = offsetX; 30 | } 31 | 32 | public void setOffsetY(Double offsetY) { 33 | this.offsetY = offsetY; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/xaxis/builder/LinesBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.xaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.xaxis.Lines; 4 | 5 | public class LinesBuilder { 6 | private Boolean show; 7 | private Double offsetX; 8 | private Double offsetY; 9 | 10 | private LinesBuilder() { 11 | } 12 | 13 | public static LinesBuilder get() { 14 | return new LinesBuilder(); 15 | } 16 | 17 | public LinesBuilder withShow(Boolean show) { 18 | this.show = show; 19 | return this; 20 | } 21 | 22 | public LinesBuilder withOffsetX(Double offsetX) { 23 | this.offsetX = offsetX; 24 | return this; 25 | } 26 | 27 | public LinesBuilder withOffsetY(Double offsetY) { 28 | this.offsetY = offsetY; 29 | return this; 30 | } 31 | 32 | public Lines build() { 33 | Lines lines = new Lines(); 34 | lines.setShow(show); 35 | lines.setOffsetX(offsetX); 36 | lines.setOffsetY(offsetY); 37 | return lines; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/yaxis/Lines.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.yaxis; 2 | 3 | public class Lines { 4 | private Boolean show; 5 | private Double offsetX; 6 | private Double offsetY; 7 | 8 | 9 | public Lines() { 10 | } 11 | 12 | public Boolean getShow() { 13 | return show; 14 | } 15 | 16 | public Double getOffsetX() { 17 | return offsetX; 18 | } 19 | 20 | public Double getOffsetY() { 21 | return offsetY; 22 | } 23 | 24 | public void setShow(Boolean show) { 25 | this.show = show; 26 | } 27 | 28 | public void setOffsetX(Double offsetX) { 29 | this.offsetX = offsetX; 30 | } 31 | 32 | public void setOffsetY(Double offsetY) { 33 | this.offsetY = offsetY; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/grid/yaxis/builder/LinesBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.grid.yaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.grid.yaxis.Lines; 4 | 5 | public class LinesBuilder { 6 | private Boolean show; 7 | private Double offsetX; 8 | private Double offsetY; 9 | 10 | private LinesBuilder() { 11 | } 12 | 13 | public static LinesBuilder get() { 14 | return new LinesBuilder(); 15 | } 16 | 17 | public LinesBuilder withShow(Boolean show) { 18 | this.show = show; 19 | return this; 20 | } 21 | 22 | public LinesBuilder withOffsetX(Double offsetX) { 23 | this.offsetX = offsetX; 24 | return this; 25 | } 26 | 27 | public LinesBuilder withOffsetY(Double offsetY) { 28 | this.offsetY = offsetY; 29 | return this; 30 | } 31 | 32 | public Lines build() { 33 | Lines lines = new Lines(); 34 | lines.setShow(show); 35 | lines.setOffsetX(offsetX); 36 | lines.setOffsetY(offsetY); 37 | return lines; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/ContainerMargin.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | public class ContainerMargin { 4 | private Double left; 5 | private Double top; 6 | 7 | 8 | public ContainerMargin() { 9 | } 10 | 11 | public Double getLeft() { 12 | return left; 13 | } 14 | 15 | public Double getTop() { 16 | return top; 17 | } 18 | 19 | public void setLeft(Double left) { 20 | this.left = left; 21 | } 22 | 23 | public void setTop(Double top) { 24 | this.top = top; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/HorizontalAlign.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum HorizontalAlign { 6 | LEFT("left"), 7 | CENTER("center"), 8 | RIGHT("right"); 9 | 10 | private final String value; 11 | 12 | HorizontalAlign(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/ItemMargin.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | public class ItemMargin { 4 | private Double horizontal; 5 | private Double vertical; 6 | 7 | 8 | public ItemMargin() { 9 | } 10 | 11 | public Double getHorizontal() { 12 | return horizontal; 13 | } 14 | 15 | public Double getVertical() { 16 | return vertical; 17 | } 18 | 19 | public void setHorizontal(Double horizontal) { 20 | this.horizontal = horizontal; 21 | } 22 | 23 | public void setVertical(Double vertical) { 24 | this.vertical = vertical; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/Labels.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | public class Labels { 4 | private String color; 5 | private Boolean useSeriesColors; 6 | 7 | 8 | public Labels() { 9 | } 10 | 11 | public String getColor() { 12 | return color; 13 | } 14 | 15 | public Boolean getUseSeriesColors() { 16 | return useSeriesColors; 17 | } 18 | 19 | public void setColor(String color) { 20 | this.color = color; 21 | } 22 | 23 | public void setUseSeriesColors(Boolean useSeriesColors) { 24 | this.useSeriesColors = useSeriesColors; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/OnItemClick.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | public class OnItemClick { 4 | private Boolean toggleDataSeries; 5 | 6 | public Boolean getToggleDataSeries() { 7 | return toggleDataSeries; 8 | } 9 | 10 | public void setToggleDataSeries(Boolean toggleDataSeries) { 11 | this.toggleDataSeries = toggleDataSeries; 12 | } 13 | 14 | public OnItemClick(Boolean toggleDataSeries) { 15 | this.toggleDataSeries = toggleDataSeries; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/OnItemHover.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | public class OnItemHover { 4 | private Boolean highlightDataSeries; 5 | 6 | public Boolean getHighlightDataSeries() { 7 | return highlightDataSeries; 8 | } 9 | 10 | public void setHighlightDataSeries(Boolean highlightDataSeries) { 11 | this.highlightDataSeries = highlightDataSeries; 12 | } 13 | 14 | public OnItemHover(Boolean highlightDataSeries) { 15 | this.highlightDataSeries = highlightDataSeries; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/Position.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Position { 6 | TOP("top"), 7 | RIGHT("right"), 8 | BOTTOM("bottom"), 9 | LEFT("left"); 10 | 11 | private final String value; 12 | 13 | Position(final String value) { 14 | this.value = value; 15 | } 16 | 17 | @JsonValue 18 | public String getValue() { 19 | return value; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/Shape.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Shape { 6 | CIRCLE("circle"), 7 | SQUARE("square"); 8 | 9 | private final String value; 10 | 11 | Shape(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/builder/ContainerMarginBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.legend.ContainerMargin; 4 | 5 | public class ContainerMarginBuilder { 6 | private Double left; 7 | private Double top; 8 | 9 | private ContainerMarginBuilder() { 10 | } 11 | 12 | public static ContainerMarginBuilder get() { 13 | return new ContainerMarginBuilder(); 14 | } 15 | 16 | public ContainerMarginBuilder withLeft(Double left) { 17 | this.left = left; 18 | return this; 19 | } 20 | 21 | public ContainerMarginBuilder withTop(Double top) { 22 | this.top = top; 23 | return this; 24 | } 25 | 26 | public ContainerMargin build() { 27 | ContainerMargin containerMargin = new ContainerMargin(); 28 | containerMargin.setLeft(left); 29 | containerMargin.setTop(top); 30 | return containerMargin; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/builder/ItemMarginBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.legend.ItemMargin; 4 | 5 | public class ItemMarginBuilder { 6 | private Double horizontal; 7 | private Double vertical; 8 | 9 | private ItemMarginBuilder() { 10 | } 11 | 12 | public static ItemMarginBuilder get() { 13 | return new ItemMarginBuilder(); 14 | } 15 | 16 | public ItemMarginBuilder withHorizontal(Double horizontal) { 17 | this.horizontal = horizontal; 18 | return this; 19 | } 20 | 21 | public ItemMarginBuilder withVertical(Double vertical) { 22 | this.vertical = vertical; 23 | return this; 24 | } 25 | 26 | public ItemMargin build() { 27 | ItemMargin itemMargin = new ItemMargin(); 28 | itemMargin.setHorizontal(horizontal); 29 | itemMargin.setVertical(vertical); 30 | return itemMargin; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/legend/builder/LabelsBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.legend.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.legend.Labels; 4 | 5 | public class LabelsBuilder { 6 | private String color; 7 | private Boolean useSeriesColors; 8 | 9 | private LabelsBuilder() { 10 | } 11 | 12 | public static LabelsBuilder get() { 13 | return new LabelsBuilder(); 14 | } 15 | 16 | public LabelsBuilder withColor(String color) { 17 | this.color = color; 18 | return this; 19 | } 20 | 21 | public LabelsBuilder withUseSeriesColors(Boolean useSeriesColors) { 22 | this.useSeriesColors = useSeriesColors; 23 | return this; 24 | } 25 | 26 | public Labels build() { 27 | Labels labels = new Labels(); 28 | labels.setColor(color); 29 | labels.setUseSeriesColors(useSeriesColors); 30 | return labels; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/locale/Options.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.locale; 2 | 3 | import java.util.List; 4 | 5 | public class Options { 6 | private List months; 7 | private List shortMonths; 8 | private List days; 9 | private List shortDays; 10 | private Toolbar toolbar; 11 | 12 | 13 | public Options() { 14 | } 15 | 16 | public List getMonths() { 17 | return months; 18 | } 19 | 20 | public List getShortMonths() { 21 | return shortMonths; 22 | } 23 | 24 | public List getDays() { 25 | return days; 26 | } 27 | 28 | public List getShortDays() { 29 | return shortDays; 30 | } 31 | 32 | public Toolbar getToolbar() { 33 | return toolbar; 34 | } 35 | 36 | public void setMonths(List months) { 37 | this.months = months; 38 | } 39 | 40 | public void setShortMonths(List shortMonths) { 41 | this.shortMonths = shortMonths; 42 | } 43 | 44 | public void setDays(List days) { 45 | this.days = days; 46 | } 47 | 48 | public void setShortDays(List shortDays) { 49 | this.shortDays = shortDays; 50 | } 51 | 52 | public void setToolbar(Toolbar toolbar) { 53 | this.toolbar = toolbar; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/markers/Hover.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.markers; 2 | 3 | public class Hover { 4 | private Double size; 5 | private Double sizeOffset; 6 | 7 | 8 | public Hover() { 9 | } 10 | 11 | public Double getSize() { 12 | return size; 13 | } 14 | 15 | public Double getSizeOffset() { 16 | return sizeOffset; 17 | } 18 | 19 | public void setSize(Double size) { 20 | this.size = size; 21 | } 22 | 23 | public void setSizeOffset(Double sizeOffset) { 24 | this.sizeOffset = sizeOffset; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/markers/Shape.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.markers; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Shape { 6 | CIRCLE("circle"), 7 | SQUARE("square"); 8 | 9 | private final String value; 10 | 11 | Shape(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/markers/builder/HoverBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.markers.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.markers.Hover; 4 | 5 | public class HoverBuilder { 6 | private Double size; 7 | private Double sizeOffset; 8 | 9 | private HoverBuilder() { 10 | } 11 | 12 | public static HoverBuilder get() { 13 | return new HoverBuilder(); 14 | } 15 | 16 | public HoverBuilder withSize(Double size) { 17 | this.size = size; 18 | return this; 19 | } 20 | 21 | public HoverBuilder withSizeOffset(Double sizeOffset) { 22 | this.sizeOffset = sizeOffset; 23 | return this; 24 | } 25 | 26 | public Hover build() { 27 | Hover hover = new Hover(); 28 | hover.setSize(size); 29 | hover.setSizeOffset(sizeOffset); 30 | return hover; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/nodata/Align.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.nodata; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Align { 6 | LEFT("left"), 7 | RIGHT("right"), 8 | CENTER("center"); 9 | 10 | private final String value; 11 | 12 | Align(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/nodata/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.nodata; 2 | 3 | public class Style { 4 | private String color; 5 | private String fontSize; 6 | private String fontFamily; 7 | 8 | 9 | public Style() { 10 | } 11 | 12 | public String getColor() { 13 | return color; 14 | } 15 | 16 | public String getFontSize() { 17 | return fontSize; 18 | } 19 | 20 | public String getFontFamily() { 21 | return fontFamily; 22 | } 23 | 24 | public void setColor(String color) { 25 | this.color = color; 26 | } 27 | 28 | public void setFontSize(String fontSize) { 29 | this.fontSize = fontSize; 30 | } 31 | 32 | public void setFontFamily(String fontFamily) { 33 | this.fontFamily = fontFamily; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/nodata/VerticalAlign.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.nodata; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum VerticalAlign { 6 | TOP("top"), 7 | MIDDLE("middle"), 8 | BOTTOM("bottom"); 9 | 10 | private final String value; 11 | 12 | VerticalAlign(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/nodata/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.nodata.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.nodata.Style; 4 | 5 | public class StyleBuilder { 6 | private String color; 7 | private String fontSize; 8 | private String fontFamily; 9 | 10 | private StyleBuilder() { 11 | } 12 | 13 | public static StyleBuilder get() { 14 | return new StyleBuilder(); 15 | } 16 | 17 | public StyleBuilder withColor(String color) { 18 | this.color = color; 19 | return this; 20 | } 21 | 22 | public StyleBuilder withFontSize(String fontSize) { 23 | this.fontSize = fontSize; 24 | return this; 25 | } 26 | 27 | public StyleBuilder withFontFamily(String fontFamily) { 28 | this.fontFamily = fontFamily; 29 | return this; 30 | } 31 | 32 | public Style build() { 33 | Style style = new Style(); 34 | style.setColor(color); 35 | style.setFontSize(fontSize); 36 | style.setFontFamily(fontFamily); 37 | return style; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/Candlestick.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.candlestick.Colors; 4 | import com.github.appreciated.apexcharts.config.plotoptions.candlestick.Wick; 5 | 6 | public class Candlestick { 7 | private Colors colors; 8 | private Wick wick; 9 | 10 | public Candlestick() { 11 | } 12 | 13 | public Colors getColors() { 14 | return colors; 15 | } 16 | 17 | public Wick getWick() { 18 | return wick; 19 | } 20 | 21 | public void setColors(Colors colors) { 22 | this.colors = colors; 23 | } 24 | 25 | public void setWick(Wick wick) { 26 | this.wick = wick; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/Heatmap.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions; 2 | 3 | public class Heatmap extends Treemap { 4 | private Double radius; 5 | 6 | public Heatmap() { 7 | } 8 | 9 | public Double getRadius() { 10 | return radius; 11 | } 12 | 13 | public void setRadius(Double radius) { 14 | this.radius = radius; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/Radar.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.radar.Polygons; 4 | 5 | public class Radar { 6 | private Double size; 7 | private Double offsetX; 8 | private Double offsetY; 9 | private Polygons polygons; 10 | 11 | public Radar() { 12 | } 13 | 14 | public Double getSize() { 15 | return size; 16 | } 17 | 18 | public Double getOffsetX() { 19 | return offsetX; 20 | } 21 | 22 | public Double getOffsetY() { 23 | return offsetY; 24 | } 25 | 26 | public Polygons getPolygons() { 27 | return polygons; 28 | } 29 | 30 | public void setSize(Double size) { 31 | this.size = size; 32 | } 33 | 34 | public void setOffsetX(Double offsetX) { 35 | this.offsetX = offsetX; 36 | } 37 | 38 | public void setOffsetY(Double offsetY) { 39 | this.offsetY = offsetY; 40 | } 41 | 42 | public void setPolygons(Polygons polygons) { 43 | this.polygons = polygons; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/bar/Ranges.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.bar; 2 | 3 | public class Ranges { 4 | private Double from; 5 | private Double to; 6 | private String color; 7 | 8 | 9 | public Ranges() { 10 | } 11 | 12 | public Double getFrom() { 13 | return from; 14 | } 15 | 16 | public Double getTo() { 17 | return to; 18 | } 19 | 20 | public String getColor() { 21 | return color; 22 | } 23 | 24 | public void setFrom(Double from) { 25 | this.from = from; 26 | } 27 | 28 | public void setTo(Double to) { 29 | this.to = to; 30 | } 31 | 32 | public void setColor(String color) { 33 | this.color = color; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/bar/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.bar; 2 | 3 | public class Style { 4 | private String color; 5 | private String fontSize; 6 | private String fontFamily; 7 | private String weight; 8 | 9 | public String getColor() { 10 | return color; 11 | } 12 | 13 | public void setColor(String color) { 14 | this.color = color; 15 | } 16 | 17 | public String getFontSize() { 18 | return fontSize; 19 | } 20 | 21 | public void setFontSize(String fontSize) { 22 | this.fontSize = fontSize; 23 | } 24 | 25 | public String getFontFamily() { 26 | return fontFamily; 27 | } 28 | 29 | public void setFontFamily(String fontFamily) { 30 | this.fontFamily = fontFamily; 31 | } 32 | 33 | public String getWeight() { 34 | return weight; 35 | } 36 | 37 | public void setWeight(String weight) { 38 | this.weight = weight; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/bar/Total.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.bar; 2 | 3 | public class Total { 4 | private boolean enabled; 5 | private String formatter; 6 | private Double offsetX; 7 | private Double offsetY; 8 | private Style style; 9 | 10 | public boolean isEnabled() { 11 | return enabled; 12 | } 13 | 14 | public void setEnabled(boolean enabled) { 15 | this.enabled = enabled; 16 | } 17 | 18 | public String getFormatter() { 19 | return formatter; 20 | } 21 | 22 | public void setFormatter(String formatter) { 23 | this.formatter = formatter; 24 | } 25 | 26 | public Double getOffsetX() { 27 | return offsetX; 28 | } 29 | 30 | public void setOffsetX(Double offsetX) { 31 | this.offsetX = offsetX; 32 | } 33 | 34 | public Double getOffsetY() { 35 | return offsetY; 36 | } 37 | 38 | public void setOffsetY(Double offsetY) { 39 | this.offsetY = offsetY; 40 | } 41 | 42 | public Style getStyle() { 43 | return style; 44 | } 45 | 46 | public void setStyle(Style style) { 47 | this.style = style; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/bar/builder/RangesBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.bar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.bar.Ranges; 4 | 5 | public class RangesBuilder { 6 | private Double from; 7 | private Double to; 8 | private String color; 9 | 10 | private RangesBuilder() { 11 | } 12 | 13 | public static RangesBuilder get() { 14 | return new RangesBuilder(); 15 | } 16 | 17 | public RangesBuilder withFrom(Double from) { 18 | this.from = from; 19 | return this; 20 | } 21 | 22 | public RangesBuilder withTo(Double to) { 23 | this.to = to; 24 | return this; 25 | } 26 | 27 | public RangesBuilder withColor(String color) { 28 | this.color = color; 29 | return this; 30 | } 31 | 32 | public Ranges build() { 33 | Ranges ranges = new Ranges(); 34 | ranges.setFrom(from); 35 | ranges.setTo(to); 36 | ranges.setColor(color); 37 | return ranges; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/bar/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.bar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.bar.Style; 4 | 5 | public class StyleBuilder { 6 | 7 | private String color; 8 | private String fontSize; 9 | private String fontFamily; 10 | private String weight; 11 | 12 | private StyleBuilder() { 13 | 14 | } 15 | 16 | public static StyleBuilder get() { 17 | return new StyleBuilder(); 18 | } 19 | 20 | public StyleBuilder withColor(String color) { 21 | this.color = color; 22 | return this; 23 | } 24 | 25 | public StyleBuilder withFontSize(String fontSize) { 26 | this.fontSize = fontSize; 27 | return this; 28 | } 29 | 30 | public StyleBuilder withFontFamily(String fontFamily) { 31 | this.fontFamily = fontFamily; 32 | return this; 33 | } 34 | 35 | public StyleBuilder withWeight(String weight) { 36 | this.weight = weight; 37 | return this; 38 | } 39 | 40 | public Style build() { 41 | Style style = new Style(); 42 | style.setColor(color); 43 | style.setFontSize(fontSize); 44 | style.setFontFamily(fontFamily); 45 | style.setWeight(weight); 46 | return style; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/boxplot/BoxPlot.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.boxplot; 2 | 3 | public class BoxPlot { 4 | private Colors colors; 5 | 6 | public Colors getColors() { 7 | return colors; 8 | } 9 | 10 | public void setColors(Colors colors) { 11 | this.colors = colors; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/boxplot/Colors.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.boxplot; 2 | 3 | public class Colors { 4 | private String upper; 5 | private String lower; 6 | 7 | public String getUpper() { 8 | return upper; 9 | } 10 | 11 | public void setUpper(String upper) { 12 | this.upper = upper; 13 | } 14 | 15 | public String getLower() { 16 | return lower; 17 | } 18 | 19 | public void setLower(String lower) { 20 | this.lower = lower; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/builder/CandlestickBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.Candlestick; 4 | import com.github.appreciated.apexcharts.config.plotoptions.candlestick.Colors; 5 | import com.github.appreciated.apexcharts.config.plotoptions.candlestick.Wick; 6 | 7 | public class CandlestickBuilder { 8 | private Colors colors; 9 | private Wick wick; 10 | 11 | private CandlestickBuilder() { 12 | } 13 | 14 | public static CandlestickBuilder get() { 15 | return new CandlestickBuilder(); 16 | } 17 | 18 | public CandlestickBuilder withColors(Colors colors) { 19 | this.colors = colors; 20 | return this; 21 | } 22 | 23 | public CandlestickBuilder withWick(Wick wick) { 24 | this.wick = wick; 25 | return this; 26 | } 27 | 28 | public Candlestick build() { 29 | Candlestick candlestick = new Candlestick(); 30 | candlestick.setColors(colors); 31 | candlestick.setWick(wick); 32 | return candlestick; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/builder/RadarBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.Radar; 4 | import com.github.appreciated.apexcharts.config.plotoptions.radar.Polygons; 5 | 6 | public class RadarBuilder { 7 | private Double size; 8 | private Double offsetX; 9 | private Double offsetY; 10 | private Polygons polygons; 11 | 12 | private RadarBuilder() { 13 | } 14 | 15 | public static RadarBuilder get() { 16 | return new RadarBuilder(); 17 | } 18 | 19 | public RadarBuilder withSize(Double size) { 20 | this.size = size; 21 | return this; 22 | } 23 | 24 | public RadarBuilder withOffsetX(Double offsetX) { 25 | this.offsetX = offsetX; 26 | return this; 27 | } 28 | 29 | public RadarBuilder withOffsetY(Double offsetY) { 30 | this.offsetY = offsetY; 31 | return this; 32 | } 33 | 34 | public RadarBuilder withPolygons(Polygons polygons) { 35 | this.polygons = polygons; 36 | return this; 37 | } 38 | 39 | public Radar build() { 40 | Radar radar = new Radar(); 41 | radar.setSize(size); 42 | radar.setOffsetX(offsetX); 43 | radar.setOffsetY(offsetY); 44 | radar.setPolygons(polygons); 45 | return radar; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/candlestick/Colors.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.candlestick; 2 | 3 | public class Colors { 4 | private String upward; 5 | private String downward; 6 | 7 | 8 | public Colors() { 9 | } 10 | 11 | public String getUpward() { 12 | return upward; 13 | } 14 | 15 | public String getDownward() { 16 | return downward; 17 | } 18 | 19 | public void setUpward(String upward) { 20 | this.upward = upward; 21 | } 22 | 23 | public void setDownward(String downward) { 24 | this.downward = downward; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/candlestick/Wick.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.candlestick; 2 | 3 | public class Wick { 4 | private Boolean useFillColor; 5 | 6 | public Boolean getUseFillColor() { 7 | return useFillColor; 8 | } 9 | 10 | public void setUseFillColor(Boolean useFillColor) { 11 | this.useFillColor = useFillColor; 12 | } 13 | 14 | public Wick(Boolean useFillColor) { 15 | this.useFillColor = useFillColor; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/candlestick/builder/ColorsBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.candlestick.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.candlestick.Colors; 4 | 5 | public class ColorsBuilder { 6 | private String upward; 7 | private String downward; 8 | 9 | private ColorsBuilder() { 10 | } 11 | 12 | public static ColorsBuilder get() { 13 | return new ColorsBuilder(); 14 | } 15 | 16 | public ColorsBuilder withUpward(String upward) { 17 | this.upward = upward; 18 | return this; 19 | } 20 | 21 | public ColorsBuilder withDownward(String downward) { 22 | this.downward = downward; 23 | return this; 24 | } 25 | 26 | public Colors build() { 27 | Colors colors = new Colors(); 28 | colors.setUpward(upward); 29 | colors.setDownward(downward); 30 | return colors; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/hollow/HollowPosition.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.hollow; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum HollowPosition { 6 | FRONT("front"), 7 | BACK("back"); 8 | 9 | private final String value; 10 | 11 | HollowPosition(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/pie/DataLabels.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.pie; 2 | 3 | public class DataLabels { 4 | private Double offset; 5 | 6 | public Double getOffset() { 7 | return offset; 8 | } 9 | 10 | public void setOffset(Double offset) { 11 | this.offset = offset; 12 | } 13 | 14 | public DataLabels(Double offset) { 15 | this.offset = offset; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/pie/Donut.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.pie; 2 | 3 | public class Donut { 4 | private String size; 5 | private String background; 6 | private Labels labels; 7 | 8 | 9 | public Donut() { 10 | } 11 | 12 | public String getSize() { 13 | return size; 14 | } 15 | 16 | public String getBackground() { 17 | return background; 18 | } 19 | 20 | public Labels getLabels() { 21 | return labels; 22 | } 23 | 24 | public void setSize(String size) { 25 | this.size = size; 26 | } 27 | 28 | public void setBackground(String background) { 29 | this.background = background; 30 | } 31 | 32 | public void setLabels(Labels labels) { 33 | this.labels = labels; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/pie/Labels.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.pie; 2 | 3 | public class Labels { 4 | private Boolean show; 5 | private Name name; 6 | private Value value; 7 | private Total total; 8 | 9 | 10 | public Labels() { 11 | } 12 | 13 | public Boolean getShow() { 14 | return show; 15 | } 16 | 17 | public Name getName() { 18 | return name; 19 | } 20 | 21 | public Value getValue() { 22 | return value; 23 | } 24 | 25 | public Total getTotal() { 26 | return total; 27 | } 28 | 29 | public void setShow(Boolean show) { 30 | this.show = show; 31 | } 32 | 33 | public void setName(Name name) { 34 | this.name = name; 35 | } 36 | 37 | public void setValue(Value value) { 38 | this.value = value; 39 | } 40 | 41 | public void setTotal(Total total) { 42 | this.total = total; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/pie/Name.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.pie; 2 | 3 | public class Name { 4 | private Boolean show; 5 | private String fontSize; 6 | private String fontFamily; 7 | private String color; 8 | private Double offsetY; 9 | 10 | 11 | public Name() { 12 | } 13 | 14 | public Boolean getShow() { 15 | return show; 16 | } 17 | 18 | public String getFontSize() { 19 | return fontSize; 20 | } 21 | 22 | public String getFontFamily() { 23 | return fontFamily; 24 | } 25 | 26 | public String getColor() { 27 | return color; 28 | } 29 | 30 | public Double getOffsetY() { 31 | return offsetY; 32 | } 33 | 34 | public void setShow(Boolean show) { 35 | this.show = show; 36 | } 37 | 38 | public void setFontSize(String fontSize) { 39 | this.fontSize = fontSize; 40 | } 41 | 42 | public void setFontFamily(String fontFamily) { 43 | this.fontFamily = fontFamily; 44 | } 45 | 46 | public void setColor(String color) { 47 | this.color = color; 48 | } 49 | 50 | public void setOffsetY(Double offsetY) { 51 | this.offsetY = offsetY; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/pie/Total.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.pie; 2 | 3 | public class Total { 4 | private Boolean show; 5 | private String label; 6 | private String color; 7 | private String formatter; 8 | 9 | 10 | public Total() { 11 | } 12 | 13 | public Boolean getShow() { 14 | return show; 15 | } 16 | 17 | public String getLabel() { 18 | return label; 19 | } 20 | 21 | public String getColor() { 22 | return color; 23 | } 24 | 25 | public String getFormatter() { 26 | return formatter; 27 | } 28 | 29 | public void setShow(Boolean show) { 30 | this.show = show; 31 | } 32 | 33 | public void setLabel(String label) { 34 | this.label = label; 35 | } 36 | 37 | public void setColor(String color) { 38 | this.color = color; 39 | } 40 | 41 | public void setFormatter(String formatter) { 42 | this.formatter = formatter; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/pie/builder/DonutBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.pie.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.pie.Donut; 4 | import com.github.appreciated.apexcharts.config.plotoptions.pie.Labels; 5 | 6 | public class DonutBuilder { 7 | private String size; 8 | private String background; 9 | private Labels labels; 10 | 11 | private DonutBuilder() { 12 | } 13 | 14 | public static DonutBuilder get() { 15 | return new DonutBuilder(); 16 | } 17 | 18 | public DonutBuilder withSize(String size) { 19 | this.size = size; 20 | return this; 21 | } 22 | 23 | public DonutBuilder withBackground(String background) { 24 | this.background = background; 25 | return this; 26 | } 27 | 28 | public DonutBuilder withLabels(Labels labels) { 29 | this.labels = labels; 30 | return this; 31 | } 32 | 33 | public Donut build() { 34 | Donut donut = new Donut(); 35 | donut.setSize(size); 36 | donut.setBackground(background); 37 | donut.setLabels(labels); 38 | return donut; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/polygons/Fill.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.polygons; 2 | 3 | import java.util.List; 4 | 5 | public class Fill { 6 | private List colors; 7 | 8 | public List getColors() { 9 | return colors; 10 | } 11 | 12 | public void setColors(List colors) { 13 | this.colors = colors; 14 | } 15 | 16 | public Fill(List colors) { 17 | this.colors = colors; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radar/Polygons.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radar; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.polygons.Fill; 4 | 5 | import java.util.List; 6 | 7 | public class Polygons { 8 | private List strokeColor; 9 | private List connectorColors; 10 | private Fill fill; 11 | 12 | 13 | public Polygons() { 14 | } 15 | 16 | public List getStrokeColor() { 17 | return strokeColor; 18 | } 19 | 20 | public List getConnectorColors() { 21 | return connectorColors; 22 | } 23 | 24 | public Fill getFill() { 25 | return fill; 26 | } 27 | 28 | public void setStrokeColor(List strokeColor) { 29 | this.strokeColor = strokeColor; 30 | } 31 | 32 | public void setConnectorColors(List connectorColors) { 33 | this.connectorColors = connectorColors; 34 | } 35 | 36 | public void setFill(Fill fill) { 37 | this.fill = fill; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radar/builder/PolygonsBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.polygons.Fill; 4 | import com.github.appreciated.apexcharts.config.plotoptions.radar.Polygons; 5 | 6 | import java.util.List; 7 | 8 | public class PolygonsBuilder { 9 | private List strokeColor; 10 | private List connectorColors; 11 | private Fill fill; 12 | 13 | private PolygonsBuilder() { 14 | } 15 | 16 | public static PolygonsBuilder get() { 17 | return new PolygonsBuilder(); 18 | } 19 | 20 | public PolygonsBuilder withStrokeColor(List strokeColor) { 21 | this.strokeColor = strokeColor; 22 | return this; 23 | } 24 | 25 | public PolygonsBuilder withConnectorColors(List connectorColors) { 26 | this.connectorColors = connectorColors; 27 | return this; 28 | } 29 | 30 | public PolygonsBuilder withFill(Fill fill) { 31 | this.fill = fill; 32 | return this; 33 | } 34 | 35 | public Polygons build() { 36 | Polygons polygons = new Polygons(); 37 | polygons.setStrokeColor(strokeColor); 38 | polygons.setConnectorColors(connectorColors); 39 | polygons.setFill(fill); 40 | return polygons; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radialbar/Name.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radialbar; 2 | 3 | public class Name { 4 | private Boolean show; 5 | private String fontSize; 6 | private String color; 7 | private Double offsetY; 8 | 9 | 10 | public Name() { 11 | } 12 | 13 | public Boolean getShow() { 14 | return show; 15 | } 16 | 17 | public String getFontSize() { 18 | return fontSize; 19 | } 20 | 21 | public String getColor() { 22 | return color; 23 | } 24 | 25 | public Double getOffsetY() { 26 | return offsetY; 27 | } 28 | 29 | public void setShow(Boolean show) { 30 | this.show = show; 31 | } 32 | 33 | public void setFontSize(String fontSize) { 34 | this.fontSize = fontSize; 35 | } 36 | 37 | public void setColor(String color) { 38 | this.color = color; 39 | } 40 | 41 | public void setOffsetY(Double offsetY) { 42 | this.offsetY = offsetY; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radialbar/RadialBarDataLabels.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radialbar; 2 | 3 | public class RadialBarDataLabels { 4 | private Boolean show; 5 | private Name name; 6 | private Value value; 7 | private Total total; 8 | 9 | 10 | public RadialBarDataLabels() { 11 | } 12 | 13 | public Boolean getShow() { 14 | return show; 15 | } 16 | 17 | public Name getName() { 18 | return name; 19 | } 20 | 21 | public Value getValue() { 22 | return value; 23 | } 24 | 25 | public Total getTotal() { 26 | return total; 27 | } 28 | 29 | public void setShow(Boolean show) { 30 | this.show = show; 31 | } 32 | 33 | public void setName(Name name) { 34 | this.name = name; 35 | } 36 | 37 | public void setValue(Value value) { 38 | this.value = value; 39 | } 40 | 41 | public void setTotal(Total total) { 42 | this.total = total; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radialbar/Total.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radialbar; 2 | 3 | public class Total { 4 | private Boolean show; 5 | private String label; 6 | private String color; 7 | private String formatter; 8 | 9 | 10 | public Total() { 11 | } 12 | 13 | public Boolean getShow() { 14 | return show; 15 | } 16 | 17 | public String getLabel() { 18 | return label; 19 | } 20 | 21 | public String getColor() { 22 | return color; 23 | } 24 | 25 | public String getFormatter() { 26 | return formatter; 27 | } 28 | 29 | public void setShow(Boolean show) { 30 | this.show = show; 31 | } 32 | 33 | public void setLabel(String label) { 34 | this.label = label; 35 | } 36 | 37 | public void setColor(String color) { 38 | this.color = color; 39 | } 40 | 41 | public void setFormatter(String formatter) { 42 | this.formatter = formatter; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radialbar/Value.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radialbar; 2 | 3 | public class Value { 4 | private Boolean show; 5 | private String fontSize; 6 | private String color; 7 | private Double offsetY; 8 | private String formatter; 9 | 10 | 11 | public Value() { 12 | } 13 | 14 | public Boolean getShow() { 15 | return show; 16 | } 17 | 18 | public String getFontSize() { 19 | return fontSize; 20 | } 21 | 22 | public String getColor() { 23 | return color; 24 | } 25 | 26 | public Double getOffsetY() { 27 | return offsetY; 28 | } 29 | 30 | public String getFormatter() { 31 | return formatter; 32 | } 33 | 34 | public void setShow(Boolean show) { 35 | this.show = show; 36 | } 37 | 38 | public void setFontSize(String fontSize) { 39 | this.fontSize = fontSize; 40 | } 41 | 42 | public void setColor(String color) { 43 | this.color = color; 44 | } 45 | 46 | public void setOffsetY(Double offsetY) { 47 | this.offsetY = offsetY; 48 | } 49 | 50 | public void setFormatter(String formatter) { 51 | this.formatter = formatter; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/radialbar/builder/NameBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.radialbar.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.radialbar.Name; 4 | 5 | public class NameBuilder { 6 | private Boolean show; 7 | private String fontSize; 8 | private String color; 9 | private Double offsetY; 10 | 11 | private NameBuilder() { 12 | } 13 | 14 | public static NameBuilder get() { 15 | return new NameBuilder(); 16 | } 17 | 18 | public NameBuilder withShow(Boolean show) { 19 | this.show = show; 20 | return this; 21 | } 22 | 23 | public NameBuilder withFontSize(String fontSize) { 24 | this.fontSize = fontSize; 25 | return this; 26 | } 27 | 28 | public NameBuilder withColor(String color) { 29 | this.color = color; 30 | return this; 31 | } 32 | 33 | public NameBuilder withOffsetY(Double offsetY) { 34 | this.offsetY = offsetY; 35 | return this; 36 | } 37 | 38 | public Name build() { 39 | Name name = new Name(); 40 | name.setShow(show); 41 | name.setFontSize(fontSize); 42 | name.setColor(color); 43 | name.setOffsetY(offsetY); 44 | return name; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/xmap/ColorScale.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.xmap; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | public class ColorScale { 7 | private List ranges; 8 | private Boolean inverse; 9 | private Double min; 10 | private Double max; 11 | 12 | 13 | public ColorScale() { 14 | } 15 | 16 | public List getRanges() { 17 | return ranges; 18 | } 19 | 20 | public Boolean getInverse() { 21 | return inverse; 22 | } 23 | 24 | public Double getMin() { 25 | return min; 26 | } 27 | 28 | public Double getMax() { 29 | return max; 30 | } 31 | 32 | public void setRanges(List ranges) { 33 | this.ranges = ranges; 34 | } 35 | 36 | public void setRanges(Ranges... ranges) { 37 | this.ranges = Arrays.asList(ranges); 38 | } 39 | 40 | public void setInverse(Boolean inverse) { 41 | this.inverse = inverse; 42 | } 43 | 44 | public void setMin(Double min) { 45 | this.min = min; 46 | } 47 | 48 | public void setMax(Double max) { 49 | this.max = max; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/xmap/Ranges.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.xmap; 2 | 3 | public class Ranges { 4 | private Double from; 5 | private Double to; 6 | private String color; 7 | private String foreColor; 8 | private String name; 9 | 10 | 11 | public Ranges() { 12 | } 13 | 14 | public Double getFrom() { 15 | return from; 16 | } 17 | 18 | public Double getTo() { 19 | return to; 20 | } 21 | 22 | public String getColor() { 23 | return color; 24 | } 25 | 26 | public String getForeColor() { 27 | return foreColor; 28 | } 29 | 30 | public String getName() { 31 | return name; 32 | } 33 | 34 | public void setFrom(Double from) { 35 | this.from = from; 36 | } 37 | 38 | public void setTo(Double to) { 39 | this.to = to; 40 | } 41 | 42 | public void setColor(String color) { 43 | this.color = color; 44 | } 45 | 46 | public void setName(String name) { 47 | this.name = name; 48 | } 49 | 50 | public void setForeColor(String foreColor) { 51 | this.foreColor = foreColor; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/plotoptions/xmap/builder/RangesBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.plotoptions.xmap.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.plotoptions.xmap.Ranges; 4 | 5 | public class RangesBuilder { 6 | private Double from; 7 | private Double to; 8 | private String color; 9 | private String name; 10 | 11 | private RangesBuilder() { 12 | } 13 | 14 | public static RangesBuilder get() { 15 | return new RangesBuilder(); 16 | } 17 | 18 | public RangesBuilder withFrom(Double from) { 19 | this.from = from; 20 | return this; 21 | } 22 | 23 | public RangesBuilder withTo(Double to) { 24 | this.to = to; 25 | return this; 26 | } 27 | 28 | public RangesBuilder withColor(String color) { 29 | this.color = color; 30 | return this; 31 | } 32 | 33 | public RangesBuilder withName(String name) { 34 | this.name = name; 35 | return this; 36 | } 37 | 38 | public Ranges build() { 39 | Ranges ranges = new Ranges(); 40 | ranges.setFrom(from); 41 | ranges.setTo(to); 42 | ranges.setColor(color); 43 | ranges.setName(name); 44 | return ranges; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/series/SeriesType.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.series; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum SeriesType { 6 | LINE("line"), 7 | AREA("area"), 8 | COLUMN("column"), 9 | SCATTER("scatter"), 10 | BOXPLOT("boxPlot"); 11 | 12 | private final String value; 13 | 14 | SeriesType(final String value) { 15 | this.value = value; 16 | } 17 | 18 | @JsonValue 19 | public String getValue() { 20 | return value; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/states/Active.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.states; 2 | 3 | 4 | public class Active { 5 | private Boolean allowMultipleDataPointsSelection; 6 | private Filter filter; 7 | 8 | 9 | public Active() { 10 | } 11 | 12 | public Boolean getAllowMultipleDataPointsSelection() { 13 | return allowMultipleDataPointsSelection; 14 | } 15 | 16 | public Filter getFilter() { 17 | return filter; 18 | } 19 | 20 | public void setAllowMultipleDataPointsSelection(Boolean allowMultipleDataPointsSelection) { 21 | this.allowMultipleDataPointsSelection = allowMultipleDataPointsSelection; 22 | } 23 | 24 | public void setFilter(Filter filter) { 25 | this.filter = filter; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/states/Filter.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.states; 2 | 3 | public class Filter { 4 | private String type; 5 | private Double value; 6 | 7 | 8 | public Filter() { 9 | } 10 | 11 | public String getType() { 12 | return type; 13 | } 14 | 15 | public Double getValue() { 16 | return value; 17 | } 18 | 19 | public void setType(String type) { 20 | this.type = type; 21 | } 22 | 23 | public void setValue(Double value) { 24 | this.value = value; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/states/Hover.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.states; 2 | 3 | public class Hover { 4 | private Filter filter; 5 | 6 | public Filter getFilter() { 7 | return filter; 8 | } 9 | 10 | public void setFilter(Filter filter) { 11 | this.filter = filter; 12 | } 13 | 14 | public Hover(Filter filter) { 15 | this.filter = filter; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/states/Normal.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.states; 2 | 3 | public class Normal { 4 | private Filter filter; 5 | 6 | public Filter getFilter() { 7 | return filter; 8 | } 9 | 10 | public void setFilter(Filter filter) { 11 | this.filter = filter; 12 | } 13 | 14 | public Normal(Filter filter) { 15 | this.filter = filter; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/states/builder/ActiveBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.states.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.states.Active; 4 | import com.github.appreciated.apexcharts.config.states.Filter; 5 | 6 | public class ActiveBuilder { 7 | private Boolean allowMultipleDataPointsSelection; 8 | private Filter filter; 9 | 10 | private ActiveBuilder() { 11 | } 12 | 13 | public static ActiveBuilder get() { 14 | return new ActiveBuilder(); 15 | } 16 | 17 | public ActiveBuilder withAllowMultipleDataPointsSelection(Boolean allowMultipleDataPointsSelection) { 18 | this.allowMultipleDataPointsSelection = allowMultipleDataPointsSelection; 19 | return this; 20 | } 21 | 22 | public ActiveBuilder withFilter(Filter filter) { 23 | this.filter = filter; 24 | return this; 25 | } 26 | 27 | public Active build() { 28 | Active active = new Active(); 29 | active.setAllowMultipleDataPointsSelection(allowMultipleDataPointsSelection); 30 | active.setFilter(filter); 31 | return active; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/states/builder/FilterBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.states.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.states.Filter; 4 | 5 | public class FilterBuilder { 6 | private String type; 7 | private Double value; 8 | 9 | private FilterBuilder() { 10 | } 11 | 12 | public static FilterBuilder get() { 13 | return new FilterBuilder(); 14 | } 15 | 16 | public FilterBuilder withType(String type) { 17 | this.type = type; 18 | return this; 19 | } 20 | 21 | public FilterBuilder withValue(Double value) { 22 | this.value = value; 23 | return this; 24 | } 25 | 26 | public Filter build() { 27 | Filter filter = new Filter(); 28 | filter.setType(type); 29 | filter.setValue(value); 30 | return filter; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/stroke/Curve.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.stroke; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Curve { 6 | SMOOTH("smooth"), 7 | STRAIGHT("straight"), 8 | STEPLINE("stepline"); 9 | 10 | private final String value; 11 | 12 | Curve(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/stroke/LineCap.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.stroke; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum LineCap { 6 | BUTT("butt"), 7 | SQUARE("square"), 8 | ROUND("round"); 9 | 10 | private final String value; 11 | 12 | LineCap(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/subtitle/Align.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.subtitle; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Align { 6 | LEFT("left"), 7 | CENTER("center"), 8 | RIGHT("right"); 9 | 10 | private final String value; 11 | 12 | Align(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/subtitle/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.subtitle; 2 | 3 | public class Style { 4 | private String fontSize; 5 | private String color; 6 | 7 | 8 | public Style() { 9 | } 10 | 11 | public String getFontSize() { 12 | return fontSize; 13 | } 14 | 15 | public String getColor() { 16 | return color; 17 | } 18 | 19 | public void setFontSize(String fontSize) { 20 | this.fontSize = fontSize; 21 | } 22 | 23 | public void setColor(String color) { 24 | this.color = color; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/subtitle/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.subtitle.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.subtitle.Style; 4 | 5 | public class StyleBuilder { 6 | private String fontSize; 7 | private String color; 8 | 9 | private StyleBuilder() { 10 | } 11 | 12 | public static StyleBuilder get() { 13 | return new StyleBuilder(); 14 | } 15 | 16 | public StyleBuilder withFontSize(String fontSize) { 17 | this.fontSize = fontSize; 18 | return this; 19 | } 20 | 21 | public StyleBuilder withColor(String color) { 22 | this.color = color; 23 | return this; 24 | } 25 | 26 | public Style build() { 27 | Style style = new Style(); 28 | style.setFontSize(fontSize); 29 | style.setColor(color); 30 | return style; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/theme/Mode.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.theme; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Mode { 6 | LIGHT("light"), 7 | DARK("dark"); 8 | 9 | private final String value; 10 | 11 | Mode(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/theme/Monochrome.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.theme; 2 | 3 | public class Monochrome { 4 | private Boolean enabled; 5 | private String color; 6 | private ShadeTo shadeTo; 7 | private Double shadeIntensity; 8 | 9 | 10 | public Monochrome() { 11 | } 12 | 13 | public Boolean getEnabled() { 14 | return enabled; 15 | } 16 | 17 | public String getColor() { 18 | return color; 19 | } 20 | 21 | public ShadeTo getShadeTo() { 22 | return shadeTo; 23 | } 24 | 25 | public Double getShadeIntensity() { 26 | return shadeIntensity; 27 | } 28 | 29 | public void setEnabled(Boolean enabled) { 30 | this.enabled = enabled; 31 | } 32 | 33 | public void setColor(String color) { 34 | this.color = color; 35 | } 36 | 37 | public void setShadeTo(ShadeTo shadeTo) { 38 | this.shadeTo = shadeTo; 39 | } 40 | 41 | public void setShadeIntensity(Double shadeIntensity) { 42 | this.shadeIntensity = shadeIntensity; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/theme/ShadeTo.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.theme; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum ShadeTo { 6 | LIGHT("light"), 7 | DARK("dark"); 8 | 9 | private final String value; 10 | 11 | ShadeTo(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/Fixed.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class Fixed { 4 | private Boolean enabled; 5 | private String position; 6 | private Double offsetX; 7 | private Double offsetY; 8 | 9 | 10 | public Fixed() { 11 | } 12 | 13 | public Boolean getEnabled() { 14 | return enabled; 15 | } 16 | 17 | public String getPosition() { 18 | return position; 19 | } 20 | 21 | public Double getOffsetX() { 22 | return offsetX; 23 | } 24 | 25 | public Double getOffsetY() { 26 | return offsetY; 27 | } 28 | 29 | public void setEnabled(Boolean enabled) { 30 | this.enabled = enabled; 31 | } 32 | 33 | public void setPosition(String position) { 34 | this.position = position; 35 | } 36 | 37 | public void setOffsetX(Double offsetX) { 38 | this.offsetX = offsetX; 39 | } 40 | 41 | public void setOffsetY(Double offsetY) { 42 | this.offsetY = offsetY; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/Items.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class Items { 4 | private String display; 5 | 6 | public String getDisplay() { 7 | return display; 8 | } 9 | 10 | public void setDisplay(String display) { 11 | this.display = display; 12 | } 13 | 14 | public Items(String display) { 15 | this.display = display; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/Marker.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class Marker { 4 | private Boolean show; 5 | 6 | public Boolean getShow() { 7 | return show; 8 | } 9 | 10 | public void setShow(Boolean show) { 11 | this.show = show; 12 | } 13 | 14 | public Marker(Boolean show) { 15 | this.show = show; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/OnDatasetHover.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class OnDatasetHover { 4 | private Boolean highlightDAtaSeries; 5 | 6 | public Boolean getHighlightDAtaSeries() { 7 | return highlightDAtaSeries; 8 | } 9 | 10 | public void setHighlightDAtaSeries(Boolean highlightDAtaSeries) { 11 | this.highlightDAtaSeries = highlightDAtaSeries; 12 | } 13 | 14 | public OnDatasetHover(Boolean highlightDAtaSeries) { 15 | this.highlightDAtaSeries = highlightDAtaSeries; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class Style { 4 | private String fontSize; 5 | private String fontFamily; 6 | 7 | 8 | public Style() { 9 | } 10 | 11 | public String getFontSize() { 12 | return fontSize; 13 | } 14 | 15 | public String getFontFamily() { 16 | return fontFamily; 17 | } 18 | 19 | public void setFontSize(String fontSize) { 20 | this.fontSize = fontSize; 21 | } 22 | 23 | public void setFontFamily(String fontFamily) { 24 | this.fontFamily = fontFamily; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/X.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class X { 4 | private Boolean show; 5 | private String format; 6 | private String formatter; 7 | 8 | 9 | public X() { 10 | } 11 | 12 | public Boolean getShow() { 13 | return show; 14 | } 15 | 16 | public String getFormat() { 17 | return format; 18 | } 19 | 20 | public String getFormatter() { 21 | return formatter; 22 | } 23 | 24 | public void setShow(Boolean show) { 25 | this.show = show; 26 | } 27 | 28 | public void setFormat(String format) { 29 | this.format = format; 30 | } 31 | 32 | public void setFormatter(String formatter) { 33 | this.formatter = formatter; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/Y.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.y.Title; 4 | 5 | public class Y { 6 | private String formatter; 7 | private Title title; 8 | 9 | public Y() { 10 | } 11 | 12 | public String getFormatter() { 13 | return formatter; 14 | } 15 | 16 | public Title getTitle() { 17 | return title; 18 | } 19 | 20 | public void setFormatter(String formatter) { 21 | this.formatter = formatter; 22 | } 23 | 24 | public void setTitle(Title title) { 25 | this.title = title; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/Z.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip; 2 | 3 | public class Z { 4 | private String formatter; 5 | private String title; 6 | 7 | 8 | public Z() { 9 | } 10 | 11 | public String getFormatter() { 12 | return formatter; 13 | } 14 | 15 | public String getTitle() { 16 | return title; 17 | } 18 | 19 | public void setFormatter(String formatter) { 20 | this.formatter = formatter; 21 | } 22 | 23 | public void setTitle(String title) { 24 | this.title = title; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/builder/FixedBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.Fixed; 4 | 5 | public class FixedBuilder { 6 | private Boolean enabled; 7 | private String position; 8 | private Double offsetX; 9 | private Double offsetY; 10 | 11 | private FixedBuilder() { 12 | } 13 | 14 | public static FixedBuilder get() { 15 | return new FixedBuilder(); 16 | } 17 | 18 | public FixedBuilder withEnabled(Boolean enabled) { 19 | this.enabled = enabled; 20 | return this; 21 | } 22 | 23 | public FixedBuilder withPosition(String position) { 24 | this.position = position; 25 | return this; 26 | } 27 | 28 | public FixedBuilder withOffsetX(Double offsetX) { 29 | this.offsetX = offsetX; 30 | return this; 31 | } 32 | 33 | public FixedBuilder withOffsetY(Double offsetY) { 34 | this.offsetY = offsetY; 35 | return this; 36 | } 37 | 38 | public Fixed build() { 39 | Fixed fixed = new Fixed(); 40 | fixed.setEnabled(enabled); 41 | fixed.setPosition(position); 42 | fixed.setOffsetX(offsetX); 43 | fixed.setOffsetY(offsetY); 44 | return fixed; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.Style; 4 | 5 | public class StyleBuilder { 6 | private String fontSize; 7 | private String fontFamily; 8 | 9 | private StyleBuilder() { 10 | } 11 | 12 | public static StyleBuilder get() { 13 | return new StyleBuilder(); 14 | } 15 | 16 | public StyleBuilder withFontSize(String fontSize) { 17 | this.fontSize = fontSize; 18 | return this; 19 | } 20 | 21 | public StyleBuilder withFontFamily(String fontFamily) { 22 | this.fontFamily = fontFamily; 23 | return this; 24 | } 25 | 26 | public Style build() { 27 | Style style = new Style(); 28 | style.setFontSize(fontSize); 29 | style.setFontFamily(fontFamily); 30 | return style; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/builder/XBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.X; 4 | import com.github.appreciated.apexcharts.helper.Formatter; 5 | 6 | public class XBuilder { 7 | private Boolean show; 8 | private String format; 9 | private String formatter; 10 | 11 | private XBuilder() { 12 | } 13 | 14 | public static XBuilder get() { 15 | return new XBuilder(); 16 | } 17 | 18 | public XBuilder withShow(Boolean show) { 19 | this.show = show; 20 | return this; 21 | } 22 | 23 | public XBuilder withFormat(String format) { 24 | this.format = format; 25 | return this; 26 | } 27 | 28 | public XBuilder withFormatter(String formatter) { 29 | this.formatter = formatter; 30 | return this; 31 | } 32 | 33 | public XBuilder withFormatter(Formatter formatter) { 34 | this.formatter = formatter.getString(); 35 | return this; 36 | } 37 | 38 | public X build() { 39 | X x = new X(); 40 | x.setShow(show); 41 | x.setFormat(format); 42 | x.setFormatter(formatter); 43 | return x; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/builder/YBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.Y; 4 | import com.github.appreciated.apexcharts.config.tooltip.y.Title; 5 | import com.github.appreciated.apexcharts.helper.Formatter; 6 | 7 | public class YBuilder { 8 | private String formatter; 9 | private Title title; 10 | 11 | private YBuilder() { 12 | } 13 | 14 | public static YBuilder get() { 15 | return new YBuilder(); 16 | } 17 | 18 | public YBuilder withFormatter(String formatter) { 19 | this.formatter = formatter; 20 | return this; 21 | } 22 | 23 | public YBuilder withFormatter(Formatter formatter) { 24 | this.formatter = formatter.getString(); 25 | return this; 26 | } 27 | 28 | public YBuilder withTitle(Title title) { 29 | this.title = title; 30 | return this; 31 | } 32 | 33 | public Y build() { 34 | Y y = new Y(); 35 | y.setFormatter(formatter); 36 | y.setTitle(title); 37 | return y; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/builder/ZBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.Z; 4 | import com.github.appreciated.apexcharts.helper.Formatter; 5 | 6 | public class ZBuilder { 7 | private String formatter; 8 | private String title; 9 | 10 | private ZBuilder() { 11 | } 12 | 13 | public static ZBuilder get() { 14 | return new ZBuilder(); 15 | } 16 | 17 | public ZBuilder withFormatter(String formatter) { 18 | this.formatter = formatter; 19 | return this; 20 | } 21 | 22 | public ZBuilder withFormatter(Formatter formatter) { 23 | this.formatter = formatter.getString(); 24 | return this; 25 | } 26 | 27 | public ZBuilder withTitle(String title) { 28 | this.title = title; 29 | return this; 30 | } 31 | 32 | public Z build() { 33 | Z z = new Z(); 34 | z.setFormatter(formatter); 35 | z.setTitle(title); 36 | return z; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/y/Title.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.y; 2 | 3 | public class Title { 4 | 5 | private String formatter; 6 | 7 | public Title() { 8 | } 9 | 10 | public String getFormatter() { 11 | return formatter; 12 | } 13 | 14 | public void setFormatter(String formatter) { 15 | this.formatter = formatter; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/tooltip/y/builder/TitleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.tooltip.y.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.tooltip.y.Title; 4 | 5 | public final class TitleBuilder { 6 | private String formatter; 7 | 8 | private TitleBuilder() { 9 | } 10 | 11 | public static TitleBuilder get() { 12 | return new TitleBuilder(); 13 | } 14 | 15 | public TitleBuilder withFormatter(String formatter) { 16 | this.formatter = formatter; 17 | return this; 18 | } 19 | 20 | public Title build() { 21 | Title title = new Title(); 22 | title.setFormatter(formatter); 23 | return title; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/AxisBorder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis; 2 | 3 | public class AxisBorder { 4 | private Boolean show; 5 | private String color; 6 | private Double offsetX; 7 | private Double offsetY; 8 | private Double strokeWidth; 9 | 10 | 11 | public AxisBorder() { 12 | } 13 | 14 | public Boolean getShow() { 15 | return show; 16 | } 17 | 18 | public String getColor() { 19 | return color; 20 | } 21 | 22 | public Double getOffsetX() { 23 | return offsetX; 24 | } 25 | 26 | public Double getOffsetY() { 27 | return offsetY; 28 | } 29 | 30 | public Double getStrokeWidth() { 31 | return strokeWidth; 32 | } 33 | 34 | public void setShow(Boolean show) { 35 | this.show = show; 36 | } 37 | 38 | public void setColor(String color) { 39 | this.color = color; 40 | } 41 | 42 | public void setOffsetX(Double offsetX) { 43 | this.offsetX = offsetX; 44 | } 45 | 46 | public void setOffsetY(Double offsetY) { 47 | this.offsetY = offsetY; 48 | } 49 | 50 | public void setStrokeWidth(Double strokeWidth) { 51 | this.strokeWidth = strokeWidth; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/TickPlacement.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum TickPlacement { 6 | BETWEEN("between"), 7 | ON("on"); 8 | 9 | private final String value; 10 | 11 | TickPlacement(final String value) { 12 | this.value = value; 13 | } 14 | 15 | @JsonValue 16 | public String getValue() { 17 | return value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/Title.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.title.Style; 4 | 5 | public class Title { 6 | private String text; 7 | private Double offsetX; 8 | private Double offsetY; 9 | private Style style; 10 | 11 | 12 | public Title() { 13 | } 14 | 15 | public String getText() { 16 | return text; 17 | } 18 | 19 | public Double getOffsetX() { 20 | return offsetX; 21 | } 22 | 23 | public Double getOffsetY() { 24 | return offsetY; 25 | } 26 | 27 | public Style getStyle() { 28 | return style; 29 | } 30 | 31 | public void setText(String text) { 32 | this.text = text; 33 | } 34 | 35 | public void setOffsetX(Double offsetX) { 36 | this.offsetX = offsetX; 37 | } 38 | 39 | public void setOffsetY(Double offsetY) { 40 | this.offsetY = offsetY; 41 | } 42 | 43 | public void setStyle(Style style) { 44 | this.style = style; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/Tooltip.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis; 2 | 3 | public class Tooltip { 4 | private Boolean enabled; 5 | private Double offsetY; 6 | 7 | 8 | public Tooltip() { 9 | } 10 | 11 | public Boolean getEnabled() { 12 | return enabled; 13 | } 14 | 15 | public Double getOffsetY() { 16 | return offsetY; 17 | } 18 | 19 | public void setEnabled(Boolean enabled) { 20 | this.enabled = enabled; 21 | } 22 | 23 | public void setOffsetY(Double offsetY) { 24 | this.offsetY = offsetY; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/XAxisType.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum XAxisType { 6 | CATEGORIES("categories"), 7 | DATETIME("datetime"), 8 | NUMERIC("numeric"); 9 | 10 | private final String value; 11 | 12 | XAxisType(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/builder/TitleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.Title; 4 | import com.github.appreciated.apexcharts.config.xaxis.title.Style; 5 | 6 | public class TitleBuilder { 7 | private String text; 8 | private Double offsetX; 9 | private Double offsetY; 10 | private Style style; 11 | 12 | private TitleBuilder() { 13 | } 14 | 15 | public static TitleBuilder get() { 16 | return new TitleBuilder(); 17 | } 18 | 19 | public TitleBuilder withText(String text) { 20 | this.text = text; 21 | return this; 22 | } 23 | 24 | public TitleBuilder withOffsetX(Double offsetX) { 25 | this.offsetX = offsetX; 26 | return this; 27 | } 28 | 29 | public TitleBuilder withOffsetY(Double offsetY) { 30 | this.offsetY = offsetY; 31 | return this; 32 | } 33 | 34 | public TitleBuilder withStyle(Style style) { 35 | this.style = style; 36 | return this; 37 | } 38 | 39 | public Title build() { 40 | Title title = new Title(); 41 | title.setText(text); 42 | title.setOffsetX(offsetX); 43 | title.setOffsetY(offsetY); 44 | title.setStyle(style); 45 | return title; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/builder/TooltipBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.Tooltip; 4 | 5 | public class TooltipBuilder { 6 | private Boolean enabled; 7 | private Double offsetY; 8 | 9 | private TooltipBuilder() { 10 | } 11 | 12 | public static TooltipBuilder get() { 13 | return new TooltipBuilder(); 14 | } 15 | 16 | public TooltipBuilder withEnabled(Boolean enabled) { 17 | this.enabled = enabled; 18 | return this; 19 | } 20 | 21 | public TooltipBuilder withOffsetY(Double offsetY) { 22 | this.offsetY = offsetY; 23 | return this; 24 | } 25 | 26 | public Tooltip build() { 27 | Tooltip tooltip = new Tooltip(); 28 | tooltip.setEnabled(enabled); 29 | tooltip.setOffsetY(offsetY); 30 | return tooltip; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/crosshairs/Fill.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.crosshairs; 2 | 3 | public class Fill { 4 | private String type; 5 | private String color; 6 | private Gradient gradient; 7 | 8 | 9 | public Fill() { 10 | } 11 | 12 | public String getType() { 13 | return type; 14 | } 15 | 16 | public String getColor() { 17 | return color; 18 | } 19 | 20 | public Gradient getGradient() { 21 | return gradient; 22 | } 23 | 24 | public void setType(String type) { 25 | this.type = type; 26 | } 27 | 28 | public void setColor(String color) { 29 | this.color = color; 30 | } 31 | 32 | public void setGradient(Gradient gradient) { 33 | this.gradient = gradient; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/crosshairs/Gradient.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.crosshairs; 2 | 3 | import java.util.List; 4 | 5 | public class Gradient { 6 | private String colorFrom; 7 | private String colorTo; 8 | private List stops; 9 | private Double opacityFrom; 10 | private Double opacityTo; 11 | 12 | 13 | public Gradient() { 14 | } 15 | 16 | public String getColorFrom() { 17 | return colorFrom; 18 | } 19 | 20 | public String getColorTo() { 21 | return colorTo; 22 | } 23 | 24 | public List getStops() { 25 | return stops; 26 | } 27 | 28 | public Double getOpacityFrom() { 29 | return opacityFrom; 30 | } 31 | 32 | public Double getOpacityTo() { 33 | return opacityTo; 34 | } 35 | 36 | public void setColorFrom(String colorFrom) { 37 | this.colorFrom = colorFrom; 38 | } 39 | 40 | public void setColorTo(String colorTo) { 41 | this.colorTo = colorTo; 42 | } 43 | 44 | public void setStops(List stops) { 45 | this.stops = stops; 46 | } 47 | 48 | public void setOpacityFrom(Double opacityFrom) { 49 | this.opacityFrom = opacityFrom; 50 | } 51 | 52 | public void setOpacityTo(Double opacityTo) { 53 | this.opacityTo = opacityTo; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/crosshairs/Stroke.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.crosshairs; 2 | 3 | public class Stroke { 4 | private String color; 5 | private Double width; 6 | private Double dashArray; 7 | 8 | 9 | public Stroke() { 10 | } 11 | 12 | public String getColor() { 13 | return color; 14 | } 15 | 16 | public Double getWidth() { 17 | return width; 18 | } 19 | 20 | public Double getDashArray() { 21 | return dashArray; 22 | } 23 | 24 | public void setColor(String color) { 25 | this.color = color; 26 | } 27 | 28 | public void setWidth(Double width) { 29 | this.width = width; 30 | } 31 | 32 | public void setDashArray(Double dashArray) { 33 | this.dashArray = dashArray; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/crosshairs/builder/FillBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.crosshairs.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.crosshairs.Fill; 4 | import com.github.appreciated.apexcharts.config.xaxis.crosshairs.Gradient; 5 | 6 | public class FillBuilder { 7 | private String type; 8 | private String color; 9 | private Gradient gradient; 10 | 11 | private FillBuilder() { 12 | } 13 | 14 | public static FillBuilder get() { 15 | return new FillBuilder(); 16 | } 17 | 18 | public FillBuilder withType(String type) { 19 | this.type = type; 20 | return this; 21 | } 22 | 23 | public FillBuilder withColor(String color) { 24 | this.color = color; 25 | return this; 26 | } 27 | 28 | public FillBuilder withGradient(Gradient gradient) { 29 | this.gradient = gradient; 30 | return this; 31 | } 32 | 33 | public Fill build() { 34 | Fill fill = new Fill(); 35 | fill.setType(type); 36 | fill.setColor(color); 37 | fill.setGradient(gradient); 38 | return fill; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/crosshairs/builder/StrokeBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.crosshairs.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.crosshairs.Stroke; 4 | 5 | public class StrokeBuilder { 6 | private String color; 7 | private Double width; 8 | private Double dashArray; 9 | 10 | private StrokeBuilder() { 11 | } 12 | 13 | public static StrokeBuilder get() { 14 | return new StrokeBuilder(); 15 | } 16 | 17 | public StrokeBuilder withColor(String color) { 18 | this.color = color; 19 | return this; 20 | } 21 | 22 | public StrokeBuilder withWidth(Double width) { 23 | this.width = width; 24 | return this; 25 | } 26 | 27 | public StrokeBuilder withDashArray(Double dashArray) { 28 | this.dashArray = dashArray; 29 | return this; 30 | } 31 | 32 | public Stroke build() { 33 | Stroke stroke = new Stroke(); 34 | stroke.setColor(color); 35 | stroke.setWidth(width); 36 | stroke.setDashArray(dashArray); 37 | return stroke; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/labels/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.labels; 2 | 3 | import java.util.List; 4 | 5 | public class Style { 6 | private List colors; 7 | private String fontSize; 8 | private String fontFamily; 9 | private String cssClass; 10 | 11 | 12 | public Style() { 13 | } 14 | 15 | public List getColors() { 16 | return colors; 17 | } 18 | 19 | public String getFontSize() { 20 | return fontSize; 21 | } 22 | 23 | public String getFontFamily() { 24 | return fontFamily; 25 | } 26 | 27 | public String getCssClass() { 28 | return cssClass; 29 | } 30 | 31 | public void setColors(List colors) { 32 | this.colors = colors; 33 | } 34 | 35 | public void setFontSize(String fontSize) { 36 | this.fontSize = fontSize; 37 | } 38 | 39 | public void setFontFamily(String fontFamily) { 40 | this.fontFamily = fontFamily; 41 | } 42 | 43 | public void setCssClass(String cssClass) { 44 | this.cssClass = cssClass; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/labels/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.labels.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.labels.Style; 4 | 5 | import java.util.List; 6 | 7 | public class StyleBuilder { 8 | private List colors; 9 | private String fontSize; 10 | private String fontFamily; 11 | private String cssClass; 12 | 13 | private StyleBuilder() { 14 | } 15 | 16 | public static StyleBuilder get() { 17 | return new StyleBuilder(); 18 | } 19 | 20 | public StyleBuilder withColors(List colors) { 21 | this.colors = colors; 22 | return this; 23 | } 24 | 25 | public StyleBuilder withFontSize(String fontSize) { 26 | this.fontSize = fontSize; 27 | return this; 28 | } 29 | 30 | public StyleBuilder withFontFamily(String fontFamily) { 31 | this.fontFamily = fontFamily; 32 | return this; 33 | } 34 | 35 | public StyleBuilder withCssClass(String cssClass) { 36 | this.cssClass = cssClass; 37 | return this; 38 | } 39 | 40 | public Style build() { 41 | Style style = new Style(); 42 | style.setColors(colors); 43 | style.setFontSize(fontSize); 44 | style.setFontFamily(fontFamily); 45 | style.setCssClass(cssClass); 46 | return style; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/title/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.title; 2 | 3 | public class Style { 4 | private String color; 5 | private String fontSize; 6 | private String cssClass; 7 | 8 | 9 | public Style() { 10 | } 11 | 12 | public String getColor() { 13 | return color; 14 | } 15 | 16 | public String getFontSize() { 17 | return fontSize; 18 | } 19 | 20 | public String getCssClass() { 21 | return cssClass; 22 | } 23 | 24 | public void setColor(String color) { 25 | this.color = color; 26 | } 27 | 28 | public void setFontSize(String fontSize) { 29 | this.fontSize = fontSize; 30 | } 31 | 32 | public void setCssClass(String cssClass) { 33 | this.cssClass = cssClass; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/xaxis/title/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.xaxis.title.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.xaxis.title.Style; 4 | 5 | public class StyleBuilder { 6 | private String color; 7 | private String fontSize; 8 | private String cssClass; 9 | 10 | private StyleBuilder() { 11 | } 12 | 13 | public static StyleBuilder get() { 14 | return new StyleBuilder(); 15 | } 16 | 17 | public StyleBuilder withColor(String color) { 18 | this.color = color; 19 | return this; 20 | } 21 | 22 | public StyleBuilder withFontSize(String fontSize) { 23 | this.fontSize = fontSize; 24 | return this; 25 | } 26 | 27 | public StyleBuilder withCssClass(String cssClass) { 28 | this.cssClass = cssClass; 29 | return this; 30 | } 31 | 32 | public Style build() { 33 | Style style = new Style(); 34 | style.setColor(color); 35 | style.setFontSize(fontSize); 36 | style.setCssClass(cssClass); 37 | return style; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/Align.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | import com.fasterxml.jackson.annotation.JsonValue; 4 | 5 | public enum Align { 6 | LEFT("left"), 7 | CENTER("center"), 8 | RIGHT("right"); 9 | 10 | private final String value; 11 | 12 | Align(final String value) { 13 | this.value = value; 14 | } 15 | 16 | @JsonValue 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/AxisBorder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | public class AxisBorder { 4 | private Boolean show; 5 | private String color; 6 | private Number offsetX; 7 | private Number offsetY; 8 | 9 | 10 | public AxisBorder() { 11 | } 12 | 13 | public Boolean getShow() { 14 | return show; 15 | } 16 | 17 | public String getColor() { 18 | return color; 19 | } 20 | 21 | public Number getOffsetX() { 22 | return offsetX; 23 | } 24 | 25 | public Number getOffsetY() { 26 | return offsetY; 27 | } 28 | 29 | public void setShow(Boolean show) { 30 | this.show = show; 31 | } 32 | 33 | public void setColor(String color) { 34 | this.color = color; 35 | } 36 | 37 | public void setOffsetX(Number offsetX) { 38 | this.offsetX = offsetX; 39 | } 40 | 41 | public void setOffsetY(Number offsetY) { 42 | this.offsetY = offsetY; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/AxisTicks.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | public class AxisTicks { 4 | private Boolean show; 5 | private String color; 6 | private Number width; 7 | private Number offsetX; 8 | private Number offsetY; 9 | 10 | 11 | public AxisTicks() { 12 | } 13 | 14 | public Boolean getShow() { 15 | return show; 16 | } 17 | 18 | public String getColor() { 19 | return color; 20 | } 21 | 22 | public Number getWidth() { 23 | return width; 24 | } 25 | 26 | public Number getOffsetX() { 27 | return offsetX; 28 | } 29 | 30 | public Number getOffsetY() { 31 | return offsetY; 32 | } 33 | 34 | public void setShow(Boolean show) { 35 | this.show = show; 36 | } 37 | 38 | public void setColor(String color) { 39 | this.color = color; 40 | } 41 | 42 | public void setWidth(Number width) { 43 | this.width = width; 44 | } 45 | 46 | public void setOffsetX(Number offsetX) { 47 | this.offsetX = offsetX; 48 | } 49 | 50 | public void setOffsetY(Number offsetY) { 51 | this.offsetY = offsetY; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/Crosshairs.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | public class Crosshairs { 4 | private Boolean show; 5 | private String position; 6 | private Stroke stroke; 7 | 8 | 9 | public Crosshairs() { 10 | } 11 | 12 | public Boolean getShow() { 13 | return show; 14 | } 15 | 16 | public String getPosition() { 17 | return position; 18 | } 19 | 20 | public Stroke getStroke() { 21 | return stroke; 22 | } 23 | 24 | public void setShow(Boolean show) { 25 | this.show = show; 26 | } 27 | 28 | public void setPosition(String position) { 29 | this.position = position; 30 | } 31 | 32 | public void setStroke(Stroke stroke) { 33 | this.stroke = stroke; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/Stroke.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | public class Stroke { 4 | private String color; 5 | private Number width; 6 | private Number dashArray; 7 | 8 | 9 | public Stroke() { 10 | } 11 | 12 | public String getColor() { 13 | return color; 14 | } 15 | 16 | public Number getWidth() { 17 | return width; 18 | } 19 | 20 | public Number getDashArray() { 21 | return dashArray; 22 | } 23 | 24 | public void setColor(String color) { 25 | this.color = color; 26 | } 27 | 28 | public void setWidth(Number width) { 29 | this.width = width; 30 | } 31 | 32 | public void setDashArray(Number dashArray) { 33 | this.dashArray = dashArray; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/Title.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | import com.github.appreciated.apexcharts.config.yaxis.title.Style; 4 | 5 | public class Title { 6 | private String text; 7 | private Number rotate; 8 | private Number offsetX; 9 | private Number offsetY; 10 | private Style style; 11 | 12 | 13 | public Title() { 14 | } 15 | 16 | public String getText() { 17 | return text; 18 | } 19 | 20 | public Number getRotate() { 21 | return rotate; 22 | } 23 | 24 | public Number getOffsetX() { 25 | return offsetX; 26 | } 27 | 28 | public Number getOffsetY() { 29 | return offsetY; 30 | } 31 | 32 | public Style getStyle() { 33 | return style; 34 | } 35 | 36 | public void setText(String text) { 37 | this.text = text; 38 | } 39 | 40 | public void setRotate(Number rotate) { 41 | this.rotate = rotate; 42 | } 43 | 44 | public void setOffsetX(Number offsetX) { 45 | this.offsetX = offsetX; 46 | } 47 | 48 | public void setOffsetY(Number offsetY) { 49 | this.offsetY = offsetY; 50 | } 51 | 52 | public void setStyle(Style style) { 53 | this.style = style; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/Tooltip.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis; 2 | 3 | public class Tooltip { 4 | private Boolean enabled; 5 | private Number offsetX; 6 | 7 | 8 | public Tooltip() { 9 | } 10 | 11 | public Boolean getEnabled() { 12 | return enabled; 13 | } 14 | 15 | public Number getOffsetX() { 16 | return offsetX; 17 | } 18 | 19 | public void setEnabled(Boolean enabled) { 20 | this.enabled = enabled; 21 | } 22 | 23 | public void setOffsetX(Number offsetX) { 24 | this.offsetX = offsetX; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/builder/AxisBorderBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.yaxis.AxisBorder; 4 | 5 | public class AxisBorderBuilder { 6 | private Boolean show; 7 | private String color; 8 | private Number offsetX; 9 | private Number offsetY; 10 | 11 | private AxisBorderBuilder() { 12 | } 13 | 14 | public static AxisBorderBuilder get() { 15 | return new AxisBorderBuilder(); 16 | } 17 | 18 | public AxisBorderBuilder withShow(Boolean show) { 19 | this.show = show; 20 | return this; 21 | } 22 | 23 | public AxisBorderBuilder withColor(String color) { 24 | this.color = color; 25 | return this; 26 | } 27 | 28 | public AxisBorderBuilder withOffsetX(Number offsetX) { 29 | this.offsetX = offsetX; 30 | return this; 31 | } 32 | 33 | public AxisBorderBuilder withOffsetY(Number offsetY) { 34 | this.offsetY = offsetY; 35 | return this; 36 | } 37 | 38 | public AxisBorder build() { 39 | AxisBorder axisBorder = new AxisBorder(); 40 | axisBorder.setShow(show); 41 | axisBorder.setColor(color); 42 | axisBorder.setOffsetX(offsetX); 43 | axisBorder.setOffsetY(offsetY); 44 | return axisBorder; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/builder/CrosshairsBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.yaxis.Crosshairs; 4 | import com.github.appreciated.apexcharts.config.yaxis.Stroke; 5 | 6 | public class CrosshairsBuilder { 7 | private Boolean show; 8 | private String position; 9 | private Stroke stroke; 10 | 11 | private CrosshairsBuilder() { 12 | } 13 | 14 | public static CrosshairsBuilder get() { 15 | return new CrosshairsBuilder(); 16 | } 17 | 18 | public CrosshairsBuilder withShow(Boolean show) { 19 | this.show = show; 20 | return this; 21 | } 22 | 23 | public CrosshairsBuilder withPosition(String position) { 24 | this.position = position; 25 | return this; 26 | } 27 | 28 | public CrosshairsBuilder withStroke(Stroke stroke) { 29 | this.stroke = stroke; 30 | return this; 31 | } 32 | 33 | public Crosshairs build() { 34 | Crosshairs crosshairs = new Crosshairs(); 35 | crosshairs.setShow(show); 36 | crosshairs.setPosition(position); 37 | crosshairs.setStroke(stroke); 38 | return crosshairs; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/builder/StrokeBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.yaxis.Stroke; 4 | 5 | public class StrokeBuilder { 6 | private String color; 7 | private Number width; 8 | private Number dashArray; 9 | 10 | private StrokeBuilder() { 11 | } 12 | 13 | public static StrokeBuilder get() { 14 | return new StrokeBuilder(); 15 | } 16 | 17 | public StrokeBuilder withColor(String color) { 18 | this.color = color; 19 | return this; 20 | } 21 | 22 | public StrokeBuilder withWidth(Number width) { 23 | this.width = width; 24 | return this; 25 | } 26 | 27 | public StrokeBuilder withDashArray(Number dashArray) { 28 | this.dashArray = dashArray; 29 | return this; 30 | } 31 | 32 | public Stroke build() { 33 | Stroke stroke = new Stroke(); 34 | stroke.setColor(color); 35 | stroke.setWidth(width); 36 | stroke.setDashArray(dashArray); 37 | return stroke; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/builder/TooltipBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.yaxis.Tooltip; 4 | 5 | public class TooltipBuilder { 6 | private Boolean enabled; 7 | private Number offsetX; 8 | 9 | private TooltipBuilder() { 10 | } 11 | 12 | public static TooltipBuilder get() { 13 | return new TooltipBuilder(); 14 | } 15 | 16 | public TooltipBuilder withEnabled(Boolean enabled) { 17 | this.enabled = enabled; 18 | return this; 19 | } 20 | 21 | public TooltipBuilder withOffsetX(Number offsetX) { 22 | this.offsetX = offsetX; 23 | return this; 24 | } 25 | 26 | public Tooltip build() { 27 | Tooltip tooltip = new Tooltip(); 28 | tooltip.setEnabled(enabled); 29 | tooltip.setOffsetX(offsetX); 30 | return tooltip; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/labels/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.labels; 2 | 3 | import java.util.List; 4 | 5 | public class Style { 6 | private List colors; 7 | private String fontSize; 8 | private String fontFamily; 9 | private String cssClass; 10 | 11 | 12 | public Style() { 13 | } 14 | 15 | public List getColors() { 16 | return colors; 17 | } 18 | 19 | public String getFontSize() { 20 | return fontSize; 21 | } 22 | 23 | public String getFontFamily() { 24 | return fontFamily; 25 | } 26 | 27 | public String getCssClass() { 28 | return cssClass; 29 | } 30 | 31 | public void setColors(List colors) { 32 | this.colors = colors; 33 | } 34 | 35 | public void setFontSize(String fontSize) { 36 | this.fontSize = fontSize; 37 | } 38 | 39 | public void setFontFamily(String fontFamily) { 40 | this.fontFamily = fontFamily; 41 | } 42 | 43 | public void setCssClass(String cssClass) { 44 | this.cssClass = cssClass; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/title/Style.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.title; 2 | 3 | public class Style { 4 | private String color; 5 | private String fontSize; 6 | private String fontFamily; 7 | private String cssClass; 8 | 9 | 10 | public Style() { 11 | } 12 | 13 | public String getColor() { 14 | return color; 15 | } 16 | 17 | public String getFontSize() { 18 | return fontSize; 19 | } 20 | 21 | public String getFontFamily() { 22 | return fontFamily; 23 | } 24 | 25 | public String getCssClass() { 26 | return cssClass; 27 | } 28 | 29 | public void setColor(String color) { 30 | this.color = color; 31 | } 32 | 33 | public void setFontSize(String fontSize) { 34 | this.fontSize = fontSize; 35 | } 36 | 37 | public void setFontFamily(String fontFamily) { 38 | this.fontFamily = fontFamily; 39 | } 40 | 41 | public void setCssClass(String cssClass) { 42 | this.cssClass = cssClass; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/config/yaxis/title/builder/StyleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.config.yaxis.title.builder; 2 | 3 | import com.github.appreciated.apexcharts.config.yaxis.title.Style; 4 | 5 | public class StyleBuilder { 6 | private String color; 7 | private String fontSize; 8 | private String fontFamily; 9 | private String cssClass; 10 | 11 | private StyleBuilder() { 12 | } 13 | 14 | public static StyleBuilder get() { 15 | return new StyleBuilder(); 16 | } 17 | 18 | public StyleBuilder withColor(String color) { 19 | this.color = color; 20 | return this; 21 | } 22 | 23 | public StyleBuilder withFontSize(String fontSize) { 24 | this.fontSize = fontSize; 25 | return this; 26 | } 27 | 28 | public StyleBuilder withFontFamily(String fontFamily) { 29 | this.fontFamily = fontFamily; 30 | return this; 31 | } 32 | 33 | public StyleBuilder withCssClass(String cssClass) { 34 | this.cssClass = cssClass; 35 | return this; 36 | } 37 | 38 | public Style build() { 39 | Style style = new Style(); 40 | style.setColor(color); 41 | style.setFontSize(fontSize); 42 | style.setFontFamily(fontFamily); 43 | style.setCssClass(cssClass); 44 | return style; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/ColorCoordinate.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public class ColorCoordinate { 4 | private X x; 5 | private Y[] y; 6 | private String fillColor; 7 | 8 | public ColorCoordinate(String fillColor,X x, Y[] y) { 9 | this.x = x; 10 | this.y = y; 11 | this.fillColor = fillColor; 12 | } 13 | 14 | public ColorCoordinate() { 15 | } 16 | 17 | public X getX() { 18 | return x; 19 | } 20 | 21 | public void setX(X x) { 22 | this.x = x; 23 | } 24 | 25 | public Y[] getY() { 26 | return y; 27 | } 28 | 29 | public void setY(Y[] y) { 30 | this.y = y; 31 | } 32 | 33 | public String getFillColor() { 34 | return fillColor; 35 | } 36 | 37 | public void setFillColor(String fillColor) { 38 | this.fillColor = fillColor; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/ColorDateCoordinate.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | import java.time.LocalDate; 4 | import java.time.ZoneId; 5 | import java.util.Arrays; 6 | 7 | public class ColorDateCoordinate extends ColorCoordinate { 8 | 9 | public ColorDateCoordinate(String fillColor,X x, LocalDate... y) { 10 | super(); 11 | setFillColor(fillColor); 12 | setX(x); 13 | ZoneId zoneId = ZoneId.systemDefault(); 14 | setY(Arrays.stream(y) 15 | .map(localDate -> localDate.atStartOfDay(zoneId).toInstant().toEpochMilli()) 16 | .toArray(Long[]::new)); 17 | 18 | } 19 | 20 | public ColorDateCoordinate(String fillColor, X x, Long... y) { 21 | super(fillColor,x,y); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/ColorDateTimeCoordinate.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | import java.time.LocalDateTime; 4 | import java.time.ZoneId; 5 | import java.util.Arrays; 6 | 7 | public class ColorDateTimeCoordinate extends ColorCoordinate { 8 | 9 | public ColorDateTimeCoordinate(String fillColor, X x, LocalDateTime... y) { 10 | super(); 11 | ZoneId zoneId = ZoneId.systemDefault(); 12 | setFillColor(fillColor); 13 | setX(x); 14 | setY(Arrays.stream(y) 15 | .map(localDate -> localDate.atZone(zoneId).toInstant().toEpochMilli()) 16 | .toArray(Long[]::new)); 17 | } 18 | public ColorDateTimeCoordinate(String fillColor, X x, Long... y) { 19 | super(fillColor,x,y); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/Coordinate.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public class Coordinate { 4 | private X x; 5 | private Y[] y; 6 | 7 | public Coordinate(X x, Y... y) { 8 | this.x = x; 9 | this.y = y; 10 | } 11 | 12 | public Coordinate() { 13 | } 14 | 15 | public X getX() { 16 | return x; 17 | } 18 | 19 | public void setX(X x) { 20 | this.x = x; 21 | } 22 | 23 | public Y[] getY() { 24 | return y; 25 | } 26 | 27 | public void setY(Y[] y) { 28 | this.y = y; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/DateCoordinate.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | import java.time.LocalDate; 4 | import java.time.ZoneId; 5 | import java.util.Arrays; 6 | 7 | public class DateCoordinate extends Coordinate { 8 | 9 | public DateCoordinate(X x, LocalDate... y) { 10 | super(); 11 | setX(x); 12 | ZoneId zoneId = ZoneId.systemDefault(); 13 | setY(Arrays.stream(y) 14 | .map(localDate -> localDate.atStartOfDay(zoneId).toInstant().toEpochMilli()) 15 | .toArray(Long[]::new)); 16 | 17 | } 18 | 19 | public DateCoordinate(X x, Long... y) { 20 | super(x,y); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/DateTimeCoordinate.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | import java.time.LocalDateTime; 4 | import java.time.ZoneId; 5 | import java.util.Arrays; 6 | 7 | public class DateTimeCoordinate extends Coordinate { 8 | 9 | public DateTimeCoordinate(X x, LocalDateTime... y) { 10 | super(); 11 | ZoneId zoneId = ZoneId.systemDefault(); 12 | setX(x); 13 | setY(Arrays.stream(y) 14 | .map(localDate -> localDate.atZone(zoneId).toInstant().toEpochMilli()) 15 | .toArray(Long[]::new)); 16 | } 17 | public DateTimeCoordinate(X x, Long... y) { 18 | super(x,y); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/Formatter.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public interface Formatter { 4 | String getString(); 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/IntFormatter.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public class IntFormatter implements Formatter { 4 | 5 | @Override 6 | public String getString() { 7 | return "function(val) {return parseInt(val);}"; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/NumberFormatFormatter.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public class NumberFormatFormatter implements Formatter { 4 | private int fixed; 5 | 6 | public NumberFormatFormatter(int fixed) { 7 | this.fixed = fixed; 8 | } 9 | 10 | @Override 11 | public String getString() { 12 | return "function(val) {return val.toFixed("+fixed+");}"; 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/StringFormatter.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public class StringFormatter implements Formatter { 4 | 5 | @Override 6 | public String getString() { 7 | return "function(val) {return val.toString()}"; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/github/appreciated/apexcharts/helper/SuffixFormatter.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.helper; 2 | 3 | public class SuffixFormatter implements Formatter { 4 | 5 | private String suffix; 6 | 7 | public SuffixFormatter(String suffix) { 8 | this.suffix = suffix; 9 | } 10 | 11 | @Override 12 | public String getString() { 13 | return "function (val, opts) { return val + \"" +suffix+"\"}"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/resources/frontend/com/github/appreciated/apexcharts/apexcharts-wrapper-styles.css: -------------------------------------------------------------------------------- 1 | :host { 2 | --apex-charts-primary-color: var(--lumo-primary-color, var(--material-primary-color)); 3 | --apex-charts-background-color: var(--lumo-base-color, var(--material-background-color)); 4 | } -------------------------------------------------------------------------------- /src/main/resources/META-INF/resources/frontend/com/github/appreciated/apexcharts/declarations.d.ts: -------------------------------------------------------------------------------- 1 | declare module "onecolor" { 2 | export default function (color: any): any; 3 | } -------------------------------------------------------------------------------- /src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | _ _ 2 | __ _ _ __ ___ __ __ ___ | |__ __ _ _ __ | |_ ___ 3 | / _` || '_ \ / _ \\ \/ / / __|| '_ \ / _` || '__|| __|/ __| 4 | | (_| || |_) || __/ > < | (__ | | | || (_| || | | |_ \__ \ 5 | \__,_|| .__/ \___|/_/\_\ \___||_| |_| \__,_||_| \__||___/ 6 | |_| 7 | -------------------------------------------------------------------------------- /src/main/resources/locales/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "de", 3 | "options": { 4 | "months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], 5 | "shortMonths": ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], 6 | "days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], 7 | "shortDays": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], 8 | "toolbar": { 9 | "exportToSVG": "SVG speichern", 10 | "exportToPNG": "PNG speichern", 11 | "exportToCSV": "CSV speichern", 12 | "menu": "Menü", 13 | "selection": "Auswahl", 14 | "selectionZoom": "Auswahl vergrößern", 15 | "zoomIn": "Vergrößern", 16 | "zoomOut": "Verkleinern", 17 | "pan": "Verschieben", 18 | "reset": "Zoom zurücksetzen" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/el.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "el", 3 | "options": { 4 | "months": ["Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"], 5 | "shortMonths": ["Ιαν", "Φευ", "Μαρ", "Απρ", "Μάι", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"], 6 | "days": ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"], 7 | "shortDays": ["Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"], 8 | "toolbar": { 9 | "exportToSVG": "Λήψη SVG", 10 | "exportToPNG": "Λήψη PNG", 11 | "exportToCSV": "Λήψη CSV", 12 | "menu": "Menu", 13 | "selection": "Επιλογή", 14 | "selectionZoom": "Μεγένθυση βάση επιλογής", 15 | "zoomIn": "Μεγένθυνση", 16 | "zoomOut": "Σμίκρυνση", 17 | "pan": "Μετατόπιση", 18 | "reset": "Επαναφορά μεγένθυνσης" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "en", 3 | "options": { 4 | "months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], 5 | "shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 6 | "days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], 7 | "shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 8 | "toolbar": { 9 | "exportToSVG": "Download SVG", 10 | "exportToPNG": "Download PNG", 11 | "exportToCSV": "Download CSV", 12 | "menu": "Menu", 13 | "selection": "Selection", 14 | "selectionZoom": "Selection Zoom", 15 | "zoomIn": "Zoom In", 16 | "zoomOut": "Zoom Out", 17 | "pan": "Panning", 18 | "reset": "Reset Zoom" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "es", 3 | "options": { 4 | "months": ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"], 5 | "shortMonths": ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"], 6 | "days": ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"], 7 | "shortDays": ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"], 8 | "toolbar": { 9 | "exportToSVG": "Descargar SVG", 10 | "exportToPNG": "Descargar PNG", 11 | "exportToCSV": "Descargar CSV", 12 | "menu": "Menu", 13 | "selection": "Seleccionar", 14 | "selectionZoom": "Seleccionar Zoom", 15 | "zoomIn": "Aumentar", 16 | "zoomOut": "Disminuir", 17 | "pan": "Navegación", 18 | "reset": "Reiniciar Zoom" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/fi.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fi", 3 | "options": { 4 | "months": ["Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu"], 5 | "shortMonths": ["Tammi", "Helmi", "Maalis", "Huhti", "Touko", "Kesä", "Heinä", "Elo", "Syys", "Loka", "Marras", "Joulu"], 6 | "days": ["Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai"], 7 | "shortDays": ["Su", "Ma", "Ti", "Ke", "To", "Pe", "La"], 8 | "toolbar": { 9 | "exportToSVG": "Lataa SVG", 10 | "exportToPNG": "Lataa PNG", 11 | "exportToCSV": "Lataa CSV", 12 | "menu": "Valikko", 13 | "selection": "Valinta", 14 | "selectionZoom": "Valinnan zoomaus", 15 | "zoomIn": "Lähennä", 16 | "zoomOut": "Loitonna", 17 | "pan": "Panoroi", 18 | "reset": "Nollaa zoomaus" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fr", 3 | "options": { 4 | "months": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], 5 | "shortMonths": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juill.", "août", "sept.", "oct.", "nov.", "déc."], 6 | "days": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], 7 | "shortDays": ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], 8 | "toolbar": { 9 | "exportToSVG": "Télécharger au format SVG", 10 | "exportToPNG": "Télécharger au format PNG", 11 | "exportToCSV": "Télécharger au format CSV", 12 | "menu": "Menu", 13 | "selection": "Sélection", 14 | "selectionZoom": "Sélection et zoom", 15 | "zoomIn": "Zoomer", 16 | "zoomOut": "Dézoomer", 17 | "pan": "Navigation", 18 | "reset": "Réinitialiser le zoom" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/hi.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hi", 3 | "options": { 4 | "months": ["जनवरी", "फ़रवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितंबर", "अक्टूबर", "नवंबर", "दिसंबर"], 5 | "shortMonths": ["जनवरी", "फ़रवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितंबर", "अक्टूबर", "नवंबर", "दिसंबर"], 6 | "days": ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"], 7 | "shortDays": ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], 8 | "toolbar": { 9 | "exportToSVG": "निर्यात SVG", 10 | "exportToPNG": "निर्यात PNG", 11 | "exportToCSV": "निर्यात CSV", 12 | "menu": "सूची", 13 | "selection": "चयन", 14 | "selectionZoom": "ज़ूम करना", 15 | "zoomIn": "ज़ूम इन", 16 | "zoomOut": "ज़ूम आउट", 17 | "pan": "पैनिंग", 18 | "reset": "फिर से कायम करना" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/hr.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hr", 3 | "options": { 4 | "months": ["Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"], 5 | "shortMonths": ["Sij", "Velj", "Ožu", "Tra", "Svi", "Lip", "Srp", "Kol", "Ruj", "Lis", "Stu", "Pro"], 6 | "days": ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"], 7 | "shortDays": ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"], 8 | "toolbar": { 9 | "exportToSVG": "Preuzmi SVG", 10 | "exportToPNG": "Preuzmi PNG", 11 | "exportToCSV": "Preuzmi CSV", 12 | "menu": "Izbornik", 13 | "selection": "Odabir", 14 | "selectionZoom": "Odabirno povećanje", 15 | "zoomIn": "Uvećajte prikaz", 16 | "zoomOut": "Umanjite prikaz", 17 | "pan": "Pomicanje", 18 | "reset": "Povratak na zadani prikaz" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/hy.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hy", 3 | "options": { 4 | "months": ["Հունվար", "Փետրվար", "Մարտ", "Ապրիլ", "Մայիս", "Հունիս", "Հուլիս", "Օգոստոս", "Սեպտեմբեր", "Հոկտեմբեր", "Նոյեմբեր", "Դեկտեմբեր"], 5 | "shortMonths": ["Հնվ", "Փտվ", "Մրտ", "Ապր", "Մյս", "Հնս", "Հլիս", "Օգս", "Սեպ", "Հոկ", "Նոյ", "Դեկ"], 6 | "days": ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ"], 7 | "shortDays": ["Կիր", "Երկ", "Երք", "Չրք", "Հնգ", "Ուրբ", "Շբթ"], 8 | "toolbar": { 9 | "exportToSVG": "Բեռնել SVG", 10 | "exportToPNG": "Բեռնել PNG", 11 | "exportToCSV": "Բեռնել CSV", 12 | "menu": "Մենյու", 13 | "selection": "Ընտրված", 14 | "selectionZoom": "Ընտրված հատվածի խոշորացում", 15 | "zoomIn": "Խոշորացնել", 16 | "zoomOut": "Մանրացնել", 17 | "pan": "Տեղափոխում", 18 | "reset": "Բերել սկզբնական վիճակի" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/id.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "id", 3 | "options": { 4 | "months": ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"], 5 | "shortMonths": ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"], 6 | "days": ["Minggu", "Senin", "Selasa", "Rabu", "kamis", "Jumat", "Sabtu"], 7 | "shortDays": ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], 8 | "toolbar": { 9 | "exportToSVG": "Unduh SVG", 10 | "exportToPNG": "Unduh PNG", 11 | "exportToCSV": "Unduh CSV", 12 | "menu": "Menu", 13 | "selection": "Pilihan", 14 | "selectionZoom": "Perbesar Pilihan", 15 | "zoomIn": "Perbesar", 16 | "zoomOut": "Perkecil", 17 | "pan": "Geser", 18 | "reset": "Atur Ulang Zoom" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/it.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "it", 3 | "options": { 4 | "months": ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"], 5 | "shortMonths": ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"], 6 | "days": ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"], 7 | "shortDays": ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"], 8 | "toolbar": { 9 | "exportToSVG": "Scarica SVG", 10 | "exportToPNG": "Scarica PNG", 11 | "exportToCSV": "Scarica CSV", 12 | "menu": "Menu", 13 | "selection": "Selezione", 14 | "selectionZoom": "Seleziona Zoom", 15 | "zoomIn": "Zoom In", 16 | "zoomOut": "Zoom Out", 17 | "pan": "Sposta", 18 | "reset": "Reimposta Zoom" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/ko.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ko", 3 | "options": { 4 | "months": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], 5 | "shortMonths": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], 6 | "days": ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], 7 | "shortDays": ["일", "월", "화", "수", "목", "금", "토"], 8 | "toolbar": { 9 | "exportToSVG": "SVG 다운로드", 10 | "exportToPNG": "PNG 다운로드", 11 | "exportToCSV": "CSV 다운로드", 12 | "menu": "메뉴", 13 | "selection": "선택", 14 | "selectionZoom": "선택영역 확대", 15 | "zoomIn": "확대", 16 | "zoomOut": "축소", 17 | "pan": "패닝", 18 | "reset": "원래대로" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/pl.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pl", 3 | "options": { 4 | "months": [ 5 | "Styczeń", 6 | "Luty", 7 | "Marzec", 8 | "Kwiecień", 9 | "Maj", 10 | "Czerwiec", 11 | "Lipiec", 12 | "Sierpień", 13 | "Wrzesień", 14 | "Październik", 15 | "Listopad", 16 | "Grudzień" 17 | ], 18 | "shortMonths": [ 19 | "Sty", 20 | "Lut", 21 | "Mar", 22 | "Kwi", 23 | "Maj", 24 | "Cze", 25 | "Lip", 26 | "Sie", 27 | "Wrz", 28 | "Paź", 29 | "Lis", 30 | "Gru" 31 | ], 32 | "days": [ 33 | "Niedziela", 34 | "Poniedziałek", 35 | "Wtorek", 36 | "Środa", 37 | "Czwartek", 38 | "Piątek", 39 | "Sobota" 40 | ], 41 | "shortDays": ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "Sb"], 42 | "toolbar": { 43 | "exportToSVG": "Pobierz SVG", 44 | "exportToPNG": "Pobierz PNG", 45 | "exportToCSV": "Pobierz CSV", 46 | "menu": "Menu", 47 | "selection": "Wybieranie", 48 | "selectionZoom": "Zoom: Wybieranie", 49 | "zoomIn": "Zoom: Przybliż", 50 | "zoomOut": "Zoom: Oddal", 51 | "pan": "Przesuwanie", 52 | "reset": "Resetuj" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/resources/locales/pt-br.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pt-br", 3 | "options": { 4 | "months": ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"], 5 | "shortMonths": ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], 6 | "days": ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"], 7 | "shortDays": ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"], 8 | "toolbar": { 9 | "exportToSVG": "Baixar SVG", 10 | "exportToPNG": "Baixar PNG", 11 | "exportToCSV": "Baixar CSV", 12 | "menu": "Menu", 13 | "selection": "Selecionar", 14 | "selectionZoom": "Selecionar Zoom", 15 | "zoomIn": "Aumentar", 16 | "zoomOut": "Diminuir", 17 | "pan": "Navegação", 18 | "reset": "Reiniciar Zoom" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/ru.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ru", 3 | "options": { 4 | "months": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], 5 | "shortMonths": ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"], 6 | "days": ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"], 7 | "shortDays": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], 8 | "toolbar": { 9 | "exportToSVG": "Сохранить SVG", 10 | "exportToPNG": "Сохранить PNG", 11 | "exportToCSV": "Сохранить CSV", 12 | "menu": "Меню", 13 | "selection": "Выбор", 14 | "selectionZoom": "Выбор с увеличением", 15 | "zoomIn": "Увеличить", 16 | "zoomOut": "Уменьшить", 17 | "pan": "Перемещение", 18 | "reset": "Сбросить увеличение" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/se.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "se", 3 | "options": { 4 | "months": ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"], 5 | "shortMonths": ["Jan", "Feb", "Mar", "Apr", "Maj", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dec"], 6 | "days": ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"], 7 | "shortDays": ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"], 8 | "toolbar": { 9 | "exportToSVG": "Ladda SVG", 10 | "exportToPNG": "Ladda PNG", 11 | "exportToCSV": "Ladda CSV", 12 | "menu": "Meny", 13 | "selection": "Selektion", 14 | "selectionZoom": "Val av zoom", 15 | "zoomIn": "Zooma in", 16 | "zoomOut": "Zooma ut", 17 | "pan": "Panorering", 18 | "reset": "Återställ zoomning" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/resources/locales/tr.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tr", 3 | "options": { 4 | "months": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"], 5 | "shortMonths": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], 6 | "days": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], 7 | "shortDays": ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"], 8 | "toolbar": { 9 | "exportToSVG": "SVG İndir", 10 | "exportToPNG": "PNG İndir", 11 | "exportToCSV": "CSV İndir", 12 | "menu": "Menü", 13 | "selection": "Seçim", 14 | "selectionZoom": "Seçim Yakınlaştır", 15 | "zoomIn": "Yakınlaştır", 16 | "zoomOut": "Uzaklaştır", 17 | "pan": "Kaydır", 18 | "reset": "Yakınlaştırmayı Sıfırla" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/locales/ua.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ua", 3 | "options": { 4 | "months": ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"], 5 | "shortMonths": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], 6 | "days": ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], 7 | "shortDays": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], 8 | "toolbar": { 9 | "exportToSVG": "Зберегти SVG", 10 | "exportToPNG": "Зберегти PNG", 11 | "exportToCSV": "Зберегти CSV", 12 | "menu": "Меню", 13 | "selection": "Вибір", 14 | "selectionZoom": "Вибір із збільшенням", 15 | "zoomIn": "Збільшити", 16 | "zoomOut": "Зменшити", 17 | "pan": "Переміщення", 18 | "reset": "Скинути збільшення" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/test/java/com/github/appreciated/apexcharts/ApexChartsAppShellConfigurator.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts; 2 | 3 | import com.vaadin.flow.component.page.AppShellConfigurator; 4 | import com.vaadin.flow.component.page.Push; 5 | 6 | @Push 7 | public class ApexChartsAppShellConfigurator implements AppShellConfigurator { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/test/java/com/github/appreciated/apexcharts/ExampleHolderView.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts; 2 | 3 | import com.vaadin.flow.component.orderedlayout.HorizontalLayout; 4 | 5 | public class ExampleHolderView extends HorizontalLayout { 6 | 7 | 8 | private final HorizontalLayout holder; 9 | 10 | public ExampleHolderView() { 11 | setSizeFull(); 12 | setAlignItems(Alignment.CENTER); 13 | setJustifyContentMode(JustifyContentMode.CENTER); 14 | holder = new HorizontalLayout(); 15 | holder.setWidth("500px"); 16 | holder.setHeight("500px"); 17 | add(holder); 18 | } 19 | 20 | 21 | public HorizontalLayout getHolder() { 22 | return holder; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/test/java/com/github/appreciated/apexcharts/FormLayoutView.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts; 2 | 3 | import com.github.appreciated.apexcharts.examples.ExampleChartGenerator; 4 | import com.vaadin.flow.component.formlayout.FormLayout; 5 | import com.vaadin.flow.component.html.Div; 6 | import com.vaadin.flow.router.Route; 7 | 8 | @Route(value = "form-layout") 9 | public class FormLayoutView extends FormLayout { 10 | public FormLayoutView() { 11 | for (ApexChartsBuilder builder : ExampleChartGenerator.getCharts()) { 12 | ApexCharts chart = builder.build(); 13 | chart.getStyle().set("align-self", "center"); 14 | add(new Div(chart)); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/java/com/github/appreciated/apexcharts/examples/radar/RadarChartExample.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.examples.radar; 2 | 3 | import com.github.appreciated.apexcharts.ApexChartsBuilder; 4 | import com.github.appreciated.apexcharts.config.builder.ChartBuilder; 5 | import com.github.appreciated.apexcharts.config.chart.Type; 6 | import com.github.appreciated.apexcharts.helper.Series; 7 | 8 | public class RadarChartExample extends ApexChartsBuilder { 9 | public RadarChartExample() { 10 | withChart(ChartBuilder.get() 11 | .withType(Type.RADAR) 12 | .build()) 13 | .withSeries(new Series<>("Series 1", 80, 50, 30, 40, 100, 20)) 14 | .withLabels("January", "February", "March", "April", "May", "June"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/test/java/com/github/appreciated/apexcharts/examples/radialbar/MultiRadialBarChartExample.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.examples.radialbar; 2 | 3 | import com.github.appreciated.apexcharts.ApexChartsBuilder; 4 | import com.github.appreciated.apexcharts.config.builder.ChartBuilder; 5 | import com.github.appreciated.apexcharts.config.chart.Type; 6 | 7 | public class MultiRadialBarChartExample extends ApexChartsBuilder { 8 | public MultiRadialBarChartExample() { 9 | withChart(ChartBuilder.get() 10 | .withType(Type.RADIALBAR) 11 | .build()) 12 | .withSeries(44.0, 55.0, 67.0, 83.0) 13 | .withLabels("Apples", "Oranges", "Bananas", "Berries"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/java/com/github/appreciated/apexcharts/examples/radialbar/RadialBarChartExample.java: -------------------------------------------------------------------------------- 1 | package com.github.appreciated.apexcharts.examples.radialbar; 2 | 3 | import com.github.appreciated.apexcharts.ApexChartsBuilder; 4 | import com.github.appreciated.apexcharts.config.builder.ChartBuilder; 5 | import com.github.appreciated.apexcharts.config.builder.PlotOptionsBuilder; 6 | import com.github.appreciated.apexcharts.config.chart.Type; 7 | import com.github.appreciated.apexcharts.config.plotoptions.builder.RadialBarBuilder; 8 | import com.github.appreciated.apexcharts.config.plotoptions.radialbar.builder.HollowBuilder; 9 | 10 | public class RadialBarChartExample extends ApexChartsBuilder { 11 | 12 | public RadialBarChartExample() { 13 | withChart(ChartBuilder.get() 14 | .withType(Type.RADIALBAR) 15 | .build()) 16 | .withPlotOptions(PlotOptionsBuilder.get() 17 | .withRadialBar(RadialBarBuilder.get() 18 | .withHollow(HollowBuilder.get() 19 | .withSize("70%") 20 | .build()) 21 | .build()) 22 | .build()) 23 | .withSeries(70.0) 24 | .withLabels("Circket"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/test/webjar-debug/META-INF/resources/README.txt: -------------------------------------------------------------------------------- 1 | This folder needs to exist for Jetty to start 2 | -------------------------------------------------------------------------------- /src/test/webjar-debug/README.md: -------------------------------------------------------------------------------- 1 | This folder exists so you can unzip webjars here for debugging purposes. 2 | The webjar files should end up inside META-INF/resources/webjar/... to be loaded instead of the files inside the actual webjars. 3 | For instance `paper-slider.html` should be in `/src/test/webjar-debug/META-INNF/resources/webjars/paper-slider/paper-slider.html` 4 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | // This TypeScript configuration file is generated by vaadin-maven-plugin. 2 | // This is needed for TypeScript compiler to compile your TypeScript code in the project. 3 | // It is recommended to commit this file to the VCS. 4 | // You might want to change the configurations to fit your preferences 5 | // For more information about the configurations, please refer to http://www.typescriptlang.org/docs/handbook/tsconfig-json.html 6 | { 7 | "_version": "9", 8 | "compilerOptions": { 9 | "sourceMap": true, 10 | "jsx": "react-jsx", 11 | "inlineSources": true, 12 | "module": "esNext", 13 | "target": "es2020", 14 | "moduleResolution": "bundler", 15 | "strict": true, 16 | "skipLibCheck": true, 17 | "noFallthroughCasesInSwitch": true, 18 | "noImplicitReturns": true, 19 | "noImplicitAny": true, 20 | "noImplicitThis": true, 21 | "noUnusedLocals": false, 22 | "noUnusedParameters": false, 23 | "experimentalDecorators": true, 24 | "useDefineForClassFields": false, 25 | "baseUrl": "frontend", 26 | "paths": { 27 | "@vaadin/flow-frontend": ["generated/jar-resources"], 28 | "@vaadin/flow-frontend/*": ["generated/jar-resources/*"], 29 | "Frontend/*": ["*"] 30 | } 31 | }, 32 | "include": [ 33 | "frontend/**/*", 34 | "types.d.ts" 35 | ], 36 | "exclude": [ 37 | "frontend/generated/jar-resources/**" 38 | ] 39 | } 40 | -------------------------------------------------------------------------------- /types.d.ts: -------------------------------------------------------------------------------- 1 | // This TypeScript modules definition file is generated by vaadin-maven-plugin. 2 | // You can not directly import your different static files into TypeScript, 3 | // This is needed for TypeScript compiler to declare and export as a TypeScript module. 4 | // It is recommended to commit this file to the VCS. 5 | // You might want to change the configurations to fit your preferences 6 | declare module '*.css' { 7 | import { CSSResultGroup } from 'lit'; 8 | const content: CSSResultGroup; 9 | export default content; 10 | } 11 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { UserConfigFn } from 'vite'; 2 | import { overrideVaadinConfig } from './vite.generated'; 3 | 4 | const customConfig: UserConfigFn = (env) => ({ 5 | // Here you can add custom Vite parameters 6 | // https://vitejs.dev/config/ 7 | }); 8 | 9 | export default overrideVaadinConfig(customConfig); 10 | --------------------------------------------------------------------------------