line_char={
const wrapper = html`<div style="text-align: center; width:${bar_width}px"></div>`;
const container = html`<div style="height: 500px;width:${bar_width}px;text-align: center"></div>`
wrapper.appendChild(container);
yield wrapper;
const dualAxes = new G2Plot.DualAxes(container, {
data: [river, beach_filter],
renderer:'svg',
appendPadding:10,
limitInPlot:false,
xField: 'Date',
xAxis:{
type: 'time',
min:"2022-03-01",
title:{
text:"Date",
position:"bottom-right"
}
},
yField: ['reading', 'Result_estimate'],
geometryOptions: [
{
geometry: 'line',
smooth: false,
seriesField: 'location',
lineStyle: {
lineWidth: 3,
lineDash: [5, 5],
},
smooth: true,
interactions: [{ type: 'element-highlight-by-color' }, { type: 'legend-highlight' }],
},
{
geometry: 'line',
smooth: false,
seriesField: 'Sampling point_proper_case',
lineStyle: {
lineWidth: 4,
opacity: 0.5,
},
interactions: [{ type: 'element-highlight-by-color' }, { type: 'legend-highlight' }],
},
],
});
dualAxes.render();
}