Update minor i18n changes and updated defaults
This commit is contained in:
@@ -282,7 +282,7 @@ const SimulationChart = ({
|
||||
};
|
||||
return <XAxis
|
||||
xAxisId="hours"
|
||||
label={{ value: showDayTimeOnXAxis === 'continuous' ? t('axisLabelHours') : t('axisLabelTimeOfDay'), position: 'insideBottom', offset: -10, style: { fontStyle: 'italic', color: '#666' } }}
|
||||
//label={{ value: showDayTimeOnXAxis === 'continuous' ? t('axisLabelHours') : t('axisLabelTimeOfDay'), position: 'insideBottom', offset: -10, style: { fontStyle: 'italic', color: '#666' } }}
|
||||
dataKey="timeHours"
|
||||
type="number"
|
||||
domain={[0, totalHours]}
|
||||
@@ -295,7 +295,8 @@ const SimulationChart = ({
|
||||
|
||||
<YAxis
|
||||
yAxisId="concentration"
|
||||
label={{ value: t('axisLabelConcentration'), angle: -90, position: 'insideLeft', offset: '0 -10', style: { fontStyle: 'italic', color: '#666' } }}
|
||||
// FIXME
|
||||
//label={{ value: t('axisLabelConcentration'), angle: -90, position: 'insideLeft', style: { fontStyle: 'italic', color: '#666' } }}
|
||||
domain={chartDomain as any}
|
||||
allowDecimals={false}
|
||||
tickCount={20}
|
||||
@@ -353,10 +354,11 @@ const SimulationChart = ({
|
||||
/>
|
||||
<CartesianGrid strokeDasharray="1 1" xAxisId="hours" yAxisId="concentration" />
|
||||
|
||||
{showDayReferenceLines !== false && [...Array(dispDays).keys()].map(day => (
|
||||
{showDayReferenceLines !== false && [...Array(dispDays+1).keys()].map(day => (
|
||||
<ReferenceLine
|
||||
key={`day-${day+1}`}
|
||||
x={24 * (day+1)}
|
||||
// TODO instead of refLineDeviatingPlan show refLineRegularPlan in case there are no deviations (primary curve for the given day matches the template)
|
||||
label={{
|
||||
value: (day === 0 ? t('refLineRegularPlan') : t('refLineDeviatingPlan')) + ' (' + t('refLineDayX', { x: day+1 }) + ')',
|
||||
position: 'insideTopRight',
|
||||
|
||||
Reference in New Issue
Block a user