@dhtmlx/chart 9.3.12 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/codebase/chart.min.css +1 -1
  3. package/codebase/chart.min.js +3 -3
  4. package/codebase/chart.min.js.map +1 -1
  5. package/codebase/types/ts-calendar/sources/Calendar.d.ts +6 -0
  6. package/codebase/types/ts-calendar/sources/helper.d.ts +1 -0
  7. package/codebase/types/ts-calendar/sources/types.d.ts +3 -0
  8. package/codebase/types/ts-chart/sources/AxisCreator.d.ts +10 -0
  9. package/codebase/types/ts-chart/sources/Chart.d.ts +26 -1
  10. package/codebase/types/ts-chart/sources/helpers/common.d.ts +12 -1
  11. package/codebase/types/ts-chart/sources/helpers/constants.d.ts +2 -0
  12. package/codebase/types/ts-chart/sources/scales/Scale.d.ts +3 -0
  13. package/codebase/types/ts-chart/sources/scales/SvgScales.d.ts +1 -1
  14. package/codebase/types/ts-chart/sources/series/Bar.d.ts +11 -1
  15. package/codebase/types/ts-chart/sources/series/BarX.d.ts +4 -1
  16. package/codebase/types/ts-chart/sources/series/BaseSeria.d.ts +1 -0
  17. package/codebase/types/ts-chart/sources/series/NoScaleSeria.d.ts +1 -1
  18. package/codebase/types/ts-chart/sources/series/ScaleSeria.d.ts +0 -1
  19. package/codebase/types/ts-chart/sources/series/Stacker.d.ts +9 -0
  20. package/codebase/types/ts-chart/sources/types.d.ts +16 -3
  21. package/codebase/types/ts-common/date.d.ts +2 -0
  22. package/codebase/types/ts-data/sources/datacollection/group.d.ts +11 -0
  23. package/codebase/types/ts-data/sources/datacollection.d.ts +84 -3
  24. package/codebase/types/ts-data/sources/methods.d.ts +8 -3
  25. package/codebase/types/ts-data/sources/treecollection.d.ts +99 -0
  26. package/codebase/types/ts-data/sources/types.d.ts +12 -2
  27. package/codebase/types/ts-grid/sources/ExtendedGrid.d.ts +3 -1
  28. package/codebase/types/ts-grid/sources/Grid.d.ts +10 -2
  29. package/codebase/types/ts-grid/sources/helpers/data.d.ts +16 -1
  30. package/codebase/types/ts-grid/sources/helpers/default.d.ts +1 -0
  31. package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
  32. package/codebase/types/ts-grid/sources/helpers/zoneFocus.d.ts +15 -4
  33. package/codebase/types/ts-grid/sources/locales/en.d.ts +0 -2
  34. package/codebase/types/ts-grid/sources/modules/History.d.ts +4 -0
  35. package/codebase/types/ts-grid/sources/modules/Selection.d.ts +3 -0
  36. package/codebase/types/ts-grid/sources/types.d.ts +36 -5
  37. package/codebase/types/ts-grid/sources/ui/cells.d.ts +3 -1
  38. package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +1 -0
  39. package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +1 -0
  40. package/codebase/types/ts-grid/sources/ui/content.d.ts +6 -2
  41. package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +1 -0
  42. package/codebase/types/ts-grid/sources/ui/proContent.d.ts +3 -16
  43. package/codebase/types/ts-layout/sources/Cell.d.ts +10 -0
  44. package/codebase/types/ts-layout/sources/helpers/constants.d.ts +2 -0
  45. package/codebase/types/ts-layout/sources/{helpers.d.ts → helpers/helpers.d.ts} +1 -1
  46. package/codebase/types/ts-layout/sources/types.d.ts +2 -1
  47. package/codebase/types/ts-message/sources/locales/en.d.ts +1 -0
  48. package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +0 -2
  49. package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +2 -1
  50. package/package.json +1 -1
  51. package/whatsnew.txt +74 -36
@@ -4,11 +4,12 @@ import { IEventSystem } from "../../ts-common/events";
4
4
  import { FlexDirection } from "../../ts-common/html";
5
5
  import { ScrollView } from "../../ts-common/ScrollView";
6
6
  import { TLabelAlignment } from "../../ts-common/types";
7
+ export type TCellHeaderTemplate = (cell: ICellConfig) => string | IView;
7
8
  export interface ICellConfig {
8
9
  id?: string;
9
10
  html?: string;
10
11
  hidden?: boolean;
11
- header?: string;
12
+ header?: string | TCellHeaderTemplate;
12
13
  headerIcon?: string;
13
14
  headerImage?: string;
14
15
  headerHeight?: number;
@@ -1,6 +1,7 @@
1
1
  declare const locale: {
2
2
  apply: string;
3
3
  reject: string;
4
+ aria_alert: string;
4
5
  aria_confirm: string;
5
6
  aria_reject: string;
6
7
  aria_apply: string;
@@ -19,8 +19,6 @@ export declare class TreeGrid extends ExtendedGrid implements ITreeGrid {
19
19
  getSpan(rowId: Id, colId: Id): ISpan;
20
20
  protected _adjustColumnsWidth({ rows, cols, totalCols, adjust, }: IAdjustColumns): IColumnsWidth;
21
21
  protected _createCollection(): void;
22
- protected _getRowIndex(rowId: Id): number;
23
22
  protected _applyLocalFilter(beforePrepareData?: boolean): void;
24
23
  protected _setEventHandlers(): void;
25
- private _serialize;
26
24
  }
@@ -16,6 +16,7 @@ export declare class TreeGridCollection extends TreeCollection {
16
16
  protected _addToOrder(_order: any, obj: any, index: number): void;
17
17
  protected _removeCore(id: Id): void;
18
18
  protected _setParent(item: IDataItem, parent: Id): void;
19
- private _checkItems;
19
+ protected _recalculateGroups(): void;
20
+ protected _checkItems(): void;
20
21
  protected _moveItem(id: any, targetId: any, index: any): void;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhtmlx/chart",
3
- "version": "9.3.12",
3
+ "version": "9.4.0",
4
4
  "description": "DHTMLX Chart - JavaScript chart library. GPL v2 edition for GPL-compatible open-source projects; commercial licenses are available for proprietary and production use.",
5
5
  "keywords": ["dhtmlx","chart","charts","graph","visualization","javascript","typescript"],
6
6
  "homepage":"https://docs.dhtmlx.com/suite/chart/",
package/whatsnew.txt CHANGED
@@ -1,39 +1,77 @@
1
- Version 9.3.12 (September 24, 2026)
2
- ----------------------------
3
-
4
- Version 9.3.11 (September 14, 2026)
5
- ----------------------------
6
-
7
- Version 9.3.10 (August 19, 2026)
8
- ----------------------------
9
-
10
- Version 9.3.9 (August 13, 2026)
11
- ----------------------------
12
-
13
- Version 9.3.8 (August 3, 2026)
14
- ----------------------------
15
-
16
- Version 9.3.7 (July 29, 2026)
17
- ----------------------------
18
-
19
- Version 9.3.6 (July 24, 2026)
20
- ----------------------------
21
-
22
- Version 9.3.5 (July 1, 2026)
23
- ----------------------------
24
-
25
- Version 9.3.4 (June 2, 2026)
26
- ----------------------------
27
-
28
- Version 9.3.3 (June 2, 2026)
29
- ----------------------------
30
-
31
- Version 9.3.2 (May 12, 2026)
32
- ----------------------------
33
-
34
- Version 9.3.1 (March 26, 2026)
35
- ----------------------------
36
-
1
+ ## Version 9.4 (October 22, 2026)
2
+
3
+ ### New functionality
4
+
5
+ - The ability to use two value scales in one chart, each with its own dimension, and to bind a series to the scale its values are measured against
6
+ - new properties of the Chart `series` configuration object: `scale` and `scales`
7
+ - new property of the Chart `scales` configuration object: `alignTicks`
8
+ - The ability to build several independent stacks in one chart, one per value scale or several named groups drawn side by side
9
+ - updated property of the Chart `series` configuration object: `stacked`, which takes the name of a stack group besides a boolean
10
+ - The ability to display the total values of stacked bars at the end of each bar of a Bar or X-Bar chart and the total value of a Donut chart in its center
11
+ - new Chart configuration property: `total`
12
+ - The ability to set the color of each bar dynamically, based on its data item, in a Bar or X-Bar chart
13
+ - updated properties of the Chart `series` configuration object: `fill` and `color`, which take a callback function besides a string
14
+
15
+ ### Fixes
16
+
17
+ - Fixed the position of the tooltip and of the highlighted grid line for the first point of a Line/Spline/Area chart that has the `"right"` scale
18
+ - Fixed series being bound to the missing `"left"` scale in a chart that declares the `"right"` value scale instead
19
+ - Fixed the `targetValue` property of the `"top"` and `"right"` scales being ignored, and the target lines of the `"bottom"` and `"top"` scales being hidden when `grid: false` was set
20
+ - Fixed the `baseLine` property of a series being checked against the `min` value of another scale and being reset in the original series configuration
21
+
22
+ ### New samples
23
+
24
+ #### Chart
25
+
26
+ - [Chart. Dual axis. Stacked bars and a spline](https://snippet.dhtmlx.com/bsinbn1t)
27
+ - [Chart. Dual axis. Two line series](https://snippet.dhtmlx.com/6g8lka1v)
28
+ - [Chart. Dual axis. Grouped bars and a line](https://snippet.dhtmlx.com/alg54k2w)
29
+ - [Chart. Dual axis. Area and spline](https://snippet.dhtmlx.com/jmdubo1x)
30
+ - [Chart. Dual axis. Horizontal bars (X-Bar)](https://snippet.dhtmlx.com/gmetbkcl)
31
+ - [Chart. Dual axis. A stack on each axis](https://snippet.dhtmlx.com/e46fqamn)
32
+ - [Chart. Grouped stacks (plan vs fact)](https://snippet.dhtmlx.com/8pu8uthc)
33
+ - [Chart. Stacked bar chart. Show total](https://snippet.dhtmlx.com/t1j8t7pi)
34
+ - [Chart. Donut chart. Show total](https://snippet.dhtmlx.com/kx7zmnf9)
35
+ - [Chart. Dynamic colors. Conditional fill by value](https://snippet.dhtmlx.com/rj0zi16z)
36
+ - [Chart. Dynamic colors. Highlight highest and lowest](https://snippet.dhtmlx.com/fbinubou)
37
+ - [Chart. Dynamic colors. Gradient fill](https://snippet.dhtmlx.com/4p88y2mg)
38
+
39
+ Version 9.3.12 (September 24, 2026)
40
+ ----------------------------
41
+
42
+ Version 9.3.11 (September 14, 2026)
43
+ ----------------------------
44
+
45
+ Version 9.3.10 (August 19, 2026)
46
+ ----------------------------
47
+
48
+ Version 9.3.9 (August 13, 2026)
49
+ ----------------------------
50
+
51
+ Version 9.3.8 (August 3, 2026)
52
+ ----------------------------
53
+
54
+ Version 9.3.7 (July 29, 2026)
55
+ ----------------------------
56
+
57
+ Version 9.3.6 (July 24, 2026)
58
+ ----------------------------
59
+
60
+ Version 9.3.5 (July 1, 2026)
61
+ ----------------------------
62
+
63
+ Version 9.3.4 (June 2, 2026)
64
+ ----------------------------
65
+
66
+ Version 9.3.3 (June 2, 2026)
67
+ ----------------------------
68
+
69
+ Version 9.3.2 (May 12, 2026)
70
+ ----------------------------
71
+
72
+ Version 9.3.1 (March 26, 2026)
73
+ ----------------------------
74
+
37
75
  # Version 9.3 (February 17, 2026)
38
76
 
39
77
  ### Updates