Skip to content

Commit

Permalink
feat!: update yagr to v2 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Dec 7, 2022
1 parent bb06672 commit ae3c347
Show file tree
Hide file tree
Showing 11 changed files with 416 additions and 503 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"highcharts-react-official": "^3.0.0",
"lodash": "^4.17.21",
"react-split-pane": "^0.1.92",
"yagr": "1.3.7"
"yagr": "^2.0.1"
},
"devDependencies": {
"@gravity-ui/eslint-config": "^1.0.2",
Expand Down
15 changes: 7 additions & 8 deletions src/plugins/yagr/__stories__/mocks/line10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,30 @@ export const line10: YagrWidgetData = {
id: '0',
name: 'Serie 1',
color: '#6c59c2',
visible: true,
data: [25, 52, 89, 72, 39, 49, 82, 59, 36, 5],
},
{
id: '1',
name: 'Serie 2',
color: '#6e8188',
visible: true,
data: [37, 6, 51, 10, 65, 35, 72, 0, 94, 54],
},
{
id: '2',
name: 'Serie 3',
color: '#e21576',
visible: true,
data: [26, 54, 15, 40, 43, 18, 65, 46, 51, 33],
},
],
},
libraryConfig: {
chart: {
type: 'line',
series: {
type: 'line',
},
select: {
zoom: false,
},
},
title: {
text: 'line: random 10 pts',
Expand All @@ -53,11 +55,8 @@ export const line10: YagrWidgetData = {
style: 'solid 2px rgba(230, 2, 7, 0.3)',
},
},
settings: {
adaptive: true,
},
tooltip: {
enabled: true,
show: true,
boundClassName: '.wrapper',
tracking: 'sticky',
className: 'chartkit-theme_common',
Expand Down
Loading

0 comments on commit ae3c347

Please sign in to comment.