Skip to content

Commit

Permalink
feat: move d3 plugin to @gravity-ui/charts (#537)
Browse files Browse the repository at this point in the history
* feat: move d3 plugin to @gravity-ui/charts

* chore: remove d3 stories

* fix: fix charts stroybook link
  • Loading branch information
korvin89 authored Nov 11, 2024
1 parent 1f3f60e commit 4412abf
Show file tree
Hide file tree
Showing 175 changed files with 73 additions and 67,906 deletions.
6 changes: 6 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const config: StorybookConfig = {
{name: '@storybook/addon-essentials', options: {backgrounds: false}},
'./theme-addon/register.tsx',
],
refs: {
'gravity-charts': {
title: 'Gravity Charts',
url: 'https://preview.gravity-ui.com/charts',
},
},
};

export default config;
39 changes: 29 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
],
"dependencies": {
"@bem-react/classname": "^1.6.0",
"@gravity-ui/charts": "^0.2.0",
"@gravity-ui/date-utils": "^2.1.0",
"@gravity-ui/i18n": "^1.0.0",
"@gravity-ui/yagr": "^4.3.4",
"afterframe": "^1.0.2",
"d3": "^7.8.5",
"lodash": "^4.17.21",
"react-split-pane": "^0.1.92",
"tslib": "^2.6.2"
Expand Down Expand Up @@ -84,6 +84,7 @@
"@typescript-eslint/eslint-plugin": "^5.31.0",
"cross-env": "^7.0.3",
"css-loader": "^5.2.7",
"d3": "^7.9.0",
"eslint": "^8.56.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
Expand Down
2 changes: 0 additions & 2 deletions src/components/ChartKit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@
--highcharts-tooltip-alternate-bg: var(--g-color-base-generic);
--highcharts-tooltip-text-complementary: var(--g-color-text-secondary);
--highcharts-holiday-band: var(--g-color-base-generic);

--d3-data-labels: var(--g-color-text-secondary);
}
209 changes: 0 additions & 209 deletions src/plugins/d3/__stories__/Showcase.stories.tsx

This file was deleted.

58 changes: 0 additions & 58 deletions src/plugins/d3/__stories__/area/Basic.stories.tsx

This file was deleted.

Loading

0 comments on commit 4412abf

Please sign in to comment.