Fix: Disable chart toolbar by default in chart directives and added a simple method for displaying or not the toolbar directly from a boolean in the configuration #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
showToolbar
configuration option across multiple chart directives to control the visibility of the toolbar in charts. The key changes include updates to theChartProvider
interface, modifications to various chart directive classes, and an example usage in theAppComponent
.Chart Configuration Enhancements:
projects/oneteme/jquery-core/src/lib/jquery-core.model.ts
: AddedshowToolbar
property to theChartProvider
andCommonChart
interfaces to allow configuration of toolbar visibility. Updated thenewChart
function to includeshowToolbar
in the default chart configuration. [1] [2] [3]Directive Updates:
projects/oneteme/jquery-apexcharts/src/lib/directive/bar-chart.directive.ts
: Set defaultshowToolbar
tofalse
in_chartConfig
and updated toolbar visibility logic in the chart options. [1] [2]projects/oneteme/jquery-apexcharts/src/lib/directive/line-chart.directive.ts
: Set defaultshowToolbar
tofalse
in_chartConfig
and updated toolbar visibility logic in the chart options. [1] [2]projects/oneteme/jquery-apexcharts/src/lib/directive/pie-chart.directive.ts
: Set defaultshowToolbar
tofalse
in_chartConfig
and updated toolbar visibility logic in the chart options. [1] [2]projects/oneteme/jquery-apexcharts/src/lib/directive/range-chart.directive.ts
: Set defaultshowToolbar
tofalse
in_chartConfig
and updated toolbar visibility logic in the chart options. [1] [2]projects/oneteme/jquery-apexcharts/src/lib/directive/treemap-chart.directive.ts
: Set defaultshowToolbar
tofalse
in_chartConfig
and updated toolbar visibility logic in the chart options. [1] [2]Example Usage:
src/app/app.component.ts
: Demonstrated the use ofshowToolbar
configuration option in the chart configuration.