mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-19 20:54:43 +01:00
Enable to read YAxis Ticks from a datapoint to enable external dynamic scaling if wanted
This commit is contained in:
@@ -4695,13 +4695,15 @@ function GenerateChartPage(page: PageChart): Payload[] {
|
|||||||
|
|
||||||
let txt = getState(id + '.ACTUAL').val;
|
let txt = getState(id + '.ACTUAL').val;
|
||||||
|
|
||||||
|
let yAxisTicks = (typeof page.items[0].yAxisTicks == 'object') ? page.items[0].yAxisTicks : JSON.parse(getState(page.items[0].yAxisTicks).val);
|
||||||
|
|
||||||
out_msgs.push({
|
out_msgs.push({
|
||||||
payload: 'entityUpd~' + //entityUpd
|
payload: 'entityUpd~' + //entityUpd
|
||||||
heading + '~' + //heading
|
heading + '~' + //heading
|
||||||
GetNavigationString(pageId) + '~' + //navigation
|
GetNavigationString(pageId) + '~' + //navigation
|
||||||
rgb_dec565(page.items[0].onColor) + '~' + //color
|
rgb_dec565(page.items[0].onColor) + '~' + //color
|
||||||
page.items[0].yAxis + '~' +
|
page.items[0].yAxis + '~' +
|
||||||
page.items[0].yAxisTicks.join(':') + '~' +
|
yAxisTicks.join(':') + '~' +
|
||||||
txt
|
txt
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -7362,7 +7364,7 @@ type PageItem = {
|
|||||||
setThermoAlias: (string[] | undefined),
|
setThermoAlias: (string[] | undefined),
|
||||||
setThermoDestTemp2: (string | undefined),
|
setThermoDestTemp2: (string | undefined),
|
||||||
yAxis: (string | undefined),
|
yAxis: (string | undefined),
|
||||||
yAxisTicks: (number[] | undefined),
|
yAxisTicks: (number[] | string | undefined),
|
||||||
xAxisDecorationId: (string | undefined),
|
xAxisDecorationId: (string | undefined),
|
||||||
popupType: (string | undefined),
|
popupType: (string | undefined),
|
||||||
popupOptions: (string[] | undefined),
|
popupOptions: (string[] | undefined),
|
||||||
|
|||||||
@@ -4313,13 +4313,15 @@ function GenerateChartPage(page: PageChart): Payload[] {
|
|||||||
|
|
||||||
let txt = getState(id + '.ACTUAL').val;
|
let txt = getState(id + '.ACTUAL').val;
|
||||||
|
|
||||||
|
let yAxisTicks = (typeof page.items[0].yAxisTicks == 'object') ? page.items[0].yAxisTicks : JSON.parse(getState(page.items[0].yAxisTicks).val);
|
||||||
|
|
||||||
out_msgs.push({
|
out_msgs.push({
|
||||||
payload: 'entityUpd~' + //entityUpd
|
payload: 'entityUpd~' + //entityUpd
|
||||||
heading + '~' + //heading
|
heading + '~' + //heading
|
||||||
GetNavigationString(pageId) + '~' + //navigation
|
GetNavigationString(pageId) + '~' + //navigation
|
||||||
rgb_dec565(page.items[0].onColor) + '~' + //color
|
rgb_dec565(page.items[0].onColor) + '~' + //color
|
||||||
page.items[0].yAxis + '~' +
|
page.items[0].yAxis + '~' +
|
||||||
page.items[0].yAxisTicks.join(':') + '~' +
|
yAxisTicks.join(':') + '~' +
|
||||||
txt
|
txt
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -6980,7 +6982,7 @@ type PageItem = {
|
|||||||
setThermoAlias: (string[] | undefined),
|
setThermoAlias: (string[] | undefined),
|
||||||
setThermoDestTemp2: (string | undefined),
|
setThermoDestTemp2: (string | undefined),
|
||||||
yAxis: (string | undefined),
|
yAxis: (string | undefined),
|
||||||
yAxisTicks: (number[] | undefined),
|
yAxisTicks: (number[] | string | undefined),
|
||||||
xAxisDecorationId: (string | undefined),
|
xAxisDecorationId: (string | undefined),
|
||||||
popupType: (string | undefined),
|
popupType: (string | undefined),
|
||||||
popupOptions: (string[] | undefined),
|
popupOptions: (string[] | undefined),
|
||||||
|
|||||||
Reference in New Issue
Block a user