@gravity-ui/chartkit 2.8.0 → 2.8.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.8.1](https://github.com/gravity-ui/chartkit/compare/v2.8.0...v2.8.1) (2023-05-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **options:** fixed default options for yAxis title color ([#168](https://github.com/gravity-ui/chartkit/issues/168)) ([52bf4cc](https://github.com/gravity-ui/chartkit/commit/52bf4cca79770982e9584e89c9a408086850acd5))
9
+
3
10
  ## [2.8.0](https://github.com/gravity-ui/chartkit/compare/v2.7.2...v2.8.0) (2023-05-23)
4
11
 
5
12
 
@@ -506,6 +506,11 @@ export declare class HighchartsComponent extends React.PureComponent<Props, Stat
506
506
  color: string;
507
507
  };
508
508
  };
509
+ title: {
510
+ style: {
511
+ color: string;
512
+ };
513
+ };
509
514
  } & {
510
515
  crosshair: boolean | {
511
516
  width: number;
@@ -107,6 +107,11 @@ export function prepareConfig(data: any, options: any, isMobile: any, holidays:
107
107
  color: string;
108
108
  };
109
109
  };
110
+ title: {
111
+ style: {
112
+ color: string;
113
+ };
114
+ };
110
115
  };
111
116
  plotOptions: {
112
117
  series: {
@@ -86,6 +86,14 @@ declare namespace options {
86
86
  }
87
87
  export { style_3 as style };
88
88
  }
89
+ export namespace title_1 {
90
+ export namespace style_4 {
91
+ const color_7: string;
92
+ export { color_7 as color };
93
+ }
94
+ export { style_4 as style };
95
+ }
96
+ export { title_1 as title };
89
97
  }
90
98
  namespace plotOptions {
91
99
  export namespace series {
@@ -99,13 +107,13 @@ declare namespace options {
99
107
  }
100
108
  export { tooltip_1 as tooltip };
101
109
  export namespace dataLabels {
102
- export namespace style_4 {
110
+ export namespace style_5 {
103
111
  const textOutline_1: string;
104
112
  export { textOutline_1 as textOutline };
105
- const color_7: string;
106
- export { color_7 as color };
113
+ const color_8: string;
114
+ export { color_8 as color };
107
115
  }
108
- export { style_4 as style };
116
+ export { style_5 as style };
109
117
  }
110
118
  export const turboThreshold: number;
111
119
  }
@@ -161,6 +161,11 @@ const options = {
161
161
  color: 'var(--highcharts-data-labels)',
162
162
  },
163
163
  },
164
+ title: {
165
+ style: {
166
+ color: 'var(--yc-color-text-secondary)',
167
+ },
168
+ },
164
169
  },
165
170
  plotOptions: {
166
171
  series: {
@@ -7,6 +7,15 @@
7
7
  opacity: 0.5;
8
8
  }
9
9
 
10
+ .chartkit-graph .highcharts-legend .highcharts-coloraxis-labels text {
11
+ fill: var(--yc-color-text-secondary) !important;
12
+ color: var(--yc-color-text-secondary) !important;
13
+ }
14
+
15
+ .chartkit-graph .highcharts-legend .highcharts-coloraxis-grid path {
16
+ stroke: var(--yc-color-base-background);
17
+ }
18
+
10
19
  .chartkit-tooltip {
11
20
  border: 1px solid var(--highcharts-grid-line);
12
21
  border-radius: 3px;
@@ -500,6 +500,11 @@ declare function getGraph({ options, data, comments, isMobile, holidays }: GetGr
500
500
  color: string;
501
501
  };
502
502
  };
503
+ title: {
504
+ style: {
505
+ color: string;
506
+ };
507
+ };
503
508
  } & {
504
509
  crosshair: boolean | {
505
510
  width: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "React component used to render charts based on any sources you need",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:gravity-ui/ChartKit.git",