File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,9 @@ views:
768768 header :
769769 show : true
770770 title : Weather Forecast
771+ all_series_config :
772+ show :
773+ extremas : time
771774 series :
772775 - entity : weather.home
773776 type : area
@@ -800,7 +803,7 @@ views:
800803 stroke_width : 0
801804 data_generator : |
802805 return entity.attributes.forecast.map((entry) => {
803- return [new Date(entry.datetime).getTime(), entry.snow ];
806+ return [new Date(entry.datetime).getTime(), entry.temperature ];
804807 });
805808 - entity : weather.home
806809 type : column
@@ -811,5 +814,5 @@ views:
811814 stroke_width : 0
812815 data_generator : |
813816 return entity.attributes.forecast.map((entry) => {
814- return [new Date(entry.datetime).getTime(), entry.precipitation ];
817+ return [new Date(entry.datetime).getTime(), entry.templow ];
815818 });
Original file line number Diff line number Diff line change @@ -655,10 +655,15 @@ class ChartsCard extends LitElement {
655655 ) {
656656 // eslint-disable-next-line @typescript-eslint/no-explicit-any
657657 const points : any = [ ] ;
658+ const multiYAxis =
659+ this . _config ?. apex_config ?. yaxis &&
660+ Array . isArray ( this . _config . apex_config . yaxis ) &&
661+ this . _config . apex_config . yaxis . length > 1 ;
658662 points . push ( {
659663 x : value [ 0 ] ,
660664 y : invert && value [ 1 ] ? - value [ 1 ] : value [ 1 ] ,
661665 seriesIndex : index ,
666+ yAxisIndex : multiYAxis ? index : 0 ,
662667 marker : {
663668 strokeColor : bgColor ,
664669 fillColor : 'var(--card-background-color)' ,
@@ -687,6 +692,7 @@ class ChartsCard extends LitElement {
687692 x : value [ 0 ] ,
688693 y : invert && value [ 1 ] ? - value [ 1 ] : value [ 1 ] ,
689694 seriesIndex : index ,
695+ yAxisIndex : multiYAxis ? index : 0 ,
690696 marker : {
691697 size : 0 ,
692698 } ,
You can’t perform that action at this time.
0 commit comments