Skip to content

Commit

Permalink
feat: add indicator chart (#30)
Browse files Browse the repository at this point in the history
* add @storybook/addon-knobs

* fix Yagr Line story

* add indicator plugin

* marginy review fixes
  • Loading branch information
korvin89 authored Jul 25, 2022
1 parent 993958a commit 4f465de
Show file tree
Hide file tree
Showing 17 changed files with 549 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
module.exports = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/preset-scss', '@storybook/addon-essentials'],
addons: [
{name: '@storybook/preset-scss'},
{name: '@storybook/addon-knobs'},
{
name: '@storybook/addon-essentials',
options: {
controls: false,
actions: false,
},
},
],
typescript: {
check: true,
checkOptions: {},
Expand Down
274 changes: 274 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"devDependencies": {
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-knobs": "^6.4.0",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^6.5.9",
"@types/jest": "^28.1.3",
Expand Down
2 changes: 2 additions & 0 deletions src/constants/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// This css class should be added for DOM element for correct calculation of scrollHeight
export const CHARTKIT_SCROLLABLE_NODE_CLASSNAME = 'chartkit-scrollable-node';
1 change: 1 addition & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {CHARTKIT_SCROLLABLE_NODE_CLASSNAME} from './common';
1 change: 1 addition & 0 deletions src/i18n/keysets/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"tooltip-rest": "Rest"
},
"error": {
"label_no-data": "No data",
"label_unknown-plugin": "Unknown plugin type \"{{type}}\"",
"label_unknown-error": "Unknown error"
}
Expand Down
1 change: 1 addition & 0 deletions src/i18n/keysets/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"tooltip-rest": "Остальные"
},
"error": {
"label_no-data": "Нет данных",
"label_unknown-plugin": "Неизвестный тип плагина \"{{type}}\"",
"label_unknown-error": "Неизвестная ошибка"
}
Expand Down
Loading

0 comments on commit 4f465de

Please sign in to comment.