ods-charts
Advanced tools
Comparing version 0.1.0-alpha.11 to 0.1.0-alpha.12
@@ -18,2 +18,3 @@ /** | ||
export * from './theme/popover/ods-chart-popover-definitions'; | ||
export * from './theme/legends/ods-chart-legends-definitions'; | ||
export declare const getThemeManager: typeof ODSChartsTheme.getThemeManager; |
@@ -49,2 +49,4 @@ export declare enum ODSChartsCSSThemesNames { | ||
odsChartsLegendContainer?: ODSChartsItemCSSDefinition; | ||
odsChartsLegendContainerVertical?: ODSChartsItemCSSDefinition; | ||
odsChartsLegendContainerHorizontal?: ODSChartsItemCSSDefinition; | ||
odsChartsLegendLink?: ODSChartsItemCSSDefinition; | ||
@@ -51,0 +53,0 @@ odsChartsLegendLinkOpacity?: ODSChartsItemCSSDefinition; |
import { type ECharts } from 'echarts'; | ||
import { ODSChartsCSSThemeDefinition, ODSChartsCSSThemesNames } from '../css-themes/css-themes'; | ||
import { ODSChartsMode } from '../ods-chart-theme'; | ||
import { ODSChartsLegendHolderDefinition } from './ods-chart-legends-definitions'; | ||
export declare class ODSChartsLegendData { | ||
@@ -10,5 +11,5 @@ labels: string[]; | ||
private echart; | ||
private legendHolderSelector; | ||
private legendHolders; | ||
private constructor(); | ||
static addLegend(echart: ECharts, legendHolderSelector: string): ODSChartsLegends; | ||
static addLegend(echart: ECharts, legendHolders: string | ODSChartsLegendHolderDefinition | ODSChartsLegendHolderDefinition[]): ODSChartsLegends; | ||
static getLegendData(dataOptions: any, updateDataOption?: boolean): ODSChartsLegendData; | ||
@@ -15,0 +16,0 @@ addLegend(dataOptions: any, colors: string[], cssTheme: ODSChartsCSSThemeDefinition, cssThemeName: ODSChartsCSSThemesNames, mode: ODSChartsMode): void; |
import { EChartsProject } from './ODS.project'; | ||
import { ODSChartsCSSThemeDefinition, ODSChartsCSSThemesNames } from './css-themes/css-themes'; | ||
import { ODSChartsPopoverConfig, ODSChartsPopoverDefinition } from './popover/ods-chart-popover-definitions'; | ||
import { ODSChartsLegendHolderDefinition } from './legends/ods-chart-legends-definitions'; | ||
/** | ||
@@ -229,3 +230,3 @@ * ODSChartsCategoricalColorsSet is used for predefined color sets. | ||
* - echart: the initialized eCharts object | ||
* - legendHolderSelector: the CSS selector of the legends container | ||
* - legendHolderSelector: the CSS selector of the legends container if it a string. But it can also be a {@link ODSChartsLegendHolderDefinition} or an array of {@link ODSChartsLegendHolderDefinition} | ||
* | ||
@@ -235,3 +236,3 @@ * optionally you can use this call to set dataOptions | ||
*/ | ||
externalizeLegends(echart: any, legendHolderSelector: string, dataOptions?: any): ODSChartsTheme; | ||
externalizeLegends(echart: any, legendHolderSelector: string | ODSChartsLegendHolderDefinition | ODSChartsLegendHolderDefinition[], dataOptions?: any): ODSChartsTheme; | ||
/** | ||
@@ -238,0 +239,0 @@ * externalizePopover() configure the manager to externalize the management of popover or tooltip. |
{ | ||
"name": "ods-charts", | ||
"description": "ODS Charts is based on Apache ECharts and provides Orange charts components.", | ||
"version": "0.1.0-alpha.11", | ||
"version": "0.1.0-alpha.12", | ||
"author": "Orange SA", | ||
@@ -34,7 +34,7 @@ "contributors": [], | ||
"ts-loader": "^9.5.1", | ||
"typedoc": "^0.26.5", | ||
"typescript": "^5.5.4", | ||
"webpack": "^5.93.0", | ||
"typedoc": "^0.26.7", | ||
"typescript": "^5.6.2", | ||
"webpack": "^5.94.0", | ||
"webpack-cli": "^5.1.4" | ||
} | ||
} |
@@ -0,0 +0,0 @@ <h1 align="center">Orange Design System Charts</h1> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4551
388747
58