public ChartConfigBuilder
@NotNull ChartConfigBuilder withXAxisConfig(@NotNull AxisConfig config)
@NotNull ChartConfigBuilder withXAxisConfigBuilder(@NotNull AxisConfigBuilder builder)
@NotNull ChartConfigBuilder withYAxisConfig(@NotNull AxisConfig config)
@NotNull ChartConfigBuilder withYAxisConfigBuilder(@NotNull AxisConfigBuilder builder)
@NotNull ChartConfigBuilder disableBackground()
@NotNull ChartConfigBuilder withBackgroundColor(int color)
Specifies background color to use.
If it's not specified explicitly and withContext,
then R.attr.leonardo_chart_background_color from its theme is used if defined.
color - background color to usewithContext@NotNull ChartConfigBuilder withGridLineWidthInPixels(int widthInPixels)
Custom grid lines width in pixels to use.
If it's not specified explicitly and a context is provided, the R.attr.leonardo_chart_grid_width is used if defined.
widthInPixels - grid line width in pixels to use@NotNull ChartConfigBuilder withGridColor(int color)
Specifies color to use for drawing grid and axis.
If it's not specified explicitly and a context is provided, then R.attr.leonardo_chart_grid_color from its theme is used.
color - background color to use@NotNull ChartConfigBuilder withPlotLineWidthInPixels(int widthInPixels)
Custom plot lines width in pixels to use.
If it's not specified explicitly and a context is provided, the R.attr.leonardo_chart_plot_width is used if defined.
widthInPixels - plot line width in pixels to use@NotNull ChartConfigBuilder disableSelection()
@NotNull ChartConfigBuilder withSelectionSignRadiusInPixels(int radiusInPixels)
Custom selection sign radius in pixels to use.
If it's not specified explicitly and a context is provided, the R.attr.leonardo_chart_selection_sign_radius is used if defined.
radiusInPixels - selection sign radius in pixels to use@NotNull ChartConfigBuilder withLegendTextTitleColor(int color)
Specifies color to use for drawing legend title.
If it's not specified explicitly and a context is provided, then R.attr.leonardo_chart_legend_text_title_color from its theme is used.
color - legend text title color to use@NotNull ChartConfigBuilder withLegendBackgroundColor(int color)
Specifies color to use for drawing legend background.
If it's not specified explicitly and a context is provided, then R.attr.leonardo_chart_legend_background_color from its theme is used.
color - legend background color to use@NotNull ChartConfigBuilder disableAnimations()
@NotNull ChartConfigBuilder withAnimationDurationMillis(int duration)
@NotNull ChartConfigBuilder withNoChartsDrawableId(@Nullable java.lang.Integer id)
@NotNull ChartConfigBuilder withStyle(int style)
@NotNull ChartConfigBuilder withContext(@NotNull android.content.Context context)
Applies default values to various graphic elements obtained from the given context's theme.
context - theme holder which defaults should be applied unless explicitly specified@NotNull ChartConfigBuilder withConfig(@NotNull ChartConfig config)
@NotNull ChartConfig build()