This commit is contained in:
@@ -3,14 +3,13 @@ import { NormalizedTelemetry } from './types'
|
||||
|
||||
export const BASE_CHART_CONFIGS: ChartConfig[] = [
|
||||
{
|
||||
key: 'soil',
|
||||
title: 'رطوبت خاک',
|
||||
seriesLabel: 'رطوبت خاک (%)',
|
||||
color: '#16a34a',
|
||||
bgColor: '#dcfce7',
|
||||
getValue: (t: NormalizedTelemetry) => t.soil,
|
||||
key: 'temp',
|
||||
title: 'دما',
|
||||
seriesLabel: 'دما (°C)',
|
||||
color: '#ef4444',
|
||||
bgColor: '#fee2e2',
|
||||
getValue: (t: NormalizedTelemetry) => t.temp,
|
||||
yAxisMin: 0,
|
||||
yAxisMax: 100,
|
||||
},
|
||||
{
|
||||
key: 'hum',
|
||||
@@ -23,13 +22,24 @@ export const BASE_CHART_CONFIGS: ChartConfig[] = [
|
||||
yAxisMax: 100,
|
||||
},
|
||||
{
|
||||
key: 'temp',
|
||||
title: 'دما',
|
||||
seriesLabel: 'دما (°C)',
|
||||
color: '#ef4444',
|
||||
bgColor: '#fee2e2',
|
||||
getValue: (t: NormalizedTelemetry) => t.temp,
|
||||
key: 'gas',
|
||||
title: 'گاز CO',
|
||||
seriesLabel: 'CO (ppm)',
|
||||
color: '#f59e0b',
|
||||
bgColor: '#fef3c7',
|
||||
getValue: (t: NormalizedTelemetry) => t.gas,
|
||||
yAxisMin: 0,
|
||||
yAxisMax: 100,
|
||||
},
|
||||
{
|
||||
key: 'soil',
|
||||
title: 'رطوبت خاک',
|
||||
seriesLabel: 'رطوبت خاک (%)',
|
||||
color: '#16a34a',
|
||||
bgColor: '#dcfce7',
|
||||
getValue: (t: NormalizedTelemetry) => t.soil,
|
||||
yAxisMin: 0,
|
||||
yAxisMax: 100,
|
||||
},
|
||||
{
|
||||
key: 'lux',
|
||||
@@ -40,15 +50,5 @@ export const BASE_CHART_CONFIGS: ChartConfig[] = [
|
||||
getValue: (t: NormalizedTelemetry) => t.lux,
|
||||
yAxisMin: 0,
|
||||
},
|
||||
{
|
||||
key: 'gas',
|
||||
title: 'گاز CO',
|
||||
seriesLabel: 'CO (ppm)',
|
||||
color: '#f59e0b',
|
||||
bgColor: '#fef3c7',
|
||||
getValue: (t: NormalizedTelemetry) => t.gas,
|
||||
yAxisMin: 0,
|
||||
yAxisMax: 100,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user