Commit ab0b650a authored by alain's avatar alain 🐙
Browse files

fix loading indication station info

parent b5eb9348
......@@ -135,13 +135,14 @@ class StationInfo extends React.Component {
render() {
moment().locale("nl", localization)
if(!this.state.unit) return null
const { stationMeta, data, chartHeight, downloadForm, unit } = this.state
const { id, source } = this.props.clickedObject
const parameter = this.props.activeLayer
const yScale = (unit && unit.scale === 'log' ? scaleLog().domain(unit.range) : scaleLinear().domain(unit.range))
let yScale = scaleLinear()
if(unit) {
yScale = (unit.scale === 'log' ? scaleLog().domain(unit.range) : scaleLinear().domain(unit.range))
}
const lineStyle = (data && data[0].minmax ? { stroke:"#000000" } : { stroke:"url(#yaxis)" } )
const lineClass = (data && data[0].minmax ? "dashed" : "solid" )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment