Skip to content

Commit a4aefa5

Browse files
asimonokmikhail-vl
andauthored
Add migration for non-context code parameters (#276)
* Fix migration guide * Add migration for getOption code to replace non-context code parameters * Update regex-pattern * Update Home dashboard * Remove Console log * Update CHANGELOG.md --------- Co-authored-by: Mikhail Volkov <mikhail@volkovlabs.io>
1 parent 6903d13 commit a4aefa5

File tree

7 files changed

+318
-546
lines changed

7 files changed

+318
-546
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
### Breaking changes
66

7-
- Requires Grafana 10 and Grafana 11
8-
- Removed non-context code parameters. Please update parameters to use `context` in the Function.
7+
- Requires Grafana 10 and Grafana 11.
8+
- Removed non-context code parameters. Please update parameters to use `context`.
99

1010
### Code parameters migration guide
1111

1212
- data -> context.panel.data
1313
- theme -> context.grafana.theme
14-
- chart -> context.panel.chart
14+
- echartsInstance -> context.panel.chart
1515
- echarts -> context.echarts
1616
- ecStat -> context.ecStat
1717
- replaceVariables -> context.grafana.replaceVariables

echarts.volkovlabs.io/home.json

Lines changed: 20 additions & 40 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)