File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,14 @@ env GITHUB_TOKEN=your_token yarn release-it patch
3737
3838#### Changelog
3939
40- ##### v0.0.6-dev
40+ ##### v0.0.6
4141
4242- Fix axis range configuration bug [ #49 ] ( https://github.com/NatelEnergy/grafana-plotly-panel/issues/49 )
4343- Add basic annotations support #57 (tchernobog)
4444- Improve loading times for plotly.js and support loading from CDN
4545- Assume date x-axis when 'auto' and the mapping has 'time'
4646- Support Fixed-Ratio Axes
47+ - Tested with Grafana 6
4748
4849
4950##### v0.0.5
Original file line number Diff line number Diff line change @@ -325,14 +325,12 @@ class PlotlyPanelCtrl extends MetricsPanelCtrl {
325325 }
326326
327327 // Fixed scales
328- if ( this . cfg . fixScale ) {
329- if ( 'x' === this . cfg . fixScale ) {
328+ if ( this . cfg . fixScale ) {
329+ if ( 'x' === this . cfg . fixScale ) {
330330 layout . yaxis . scaleanchor = 'x' ;
331- }
332- else if ( 'y' === this . cfg . fixScale ) {
331+ } else if ( 'y' === this . cfg . fixScale ) {
333332 layout . xaxis . scaleanchor = 'y' ;
334- }
335- else if ( 'z' === this . cfg . fixScale ) {
333+ } else if ( 'z' === this . cfg . fixScale ) {
336334 layout . xaxis . scaleanchor = 'z' ;
337335 layout . yaxis . scaleanchor = 'z' ;
338336 }
@@ -411,7 +409,6 @@ class PlotlyPanelCtrl extends MetricsPanelCtrl {
411409 // Set the second axis
412410 layout . yaxis2 = PlotlyPanelCtrl . yaxis2 ;
413411 }
414- console . log ( 'LAYOUT' , layout ) ;
415412 return layout ;
416413 }
417414
@@ -760,7 +757,7 @@ class PlotlyPanelCtrl extends MetricsPanelCtrl {
760757
761758 // Updates the layout and redraw
762759 if ( this . initialized && this . graphDiv ) {
763- if ( ! this . cfg . showAnnotations ) {
760+ if ( ! this . cfg . showAnnotations ) {
764761 this . annotations . clear ( ) ;
765762 }
766763
You can’t perform that action at this time.
0 commit comments