mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
[explore v2] fix explorev2 chart errors (#1277)
* fix prototypes and arrow function * only show line chart if viz type is line * split render lines function * fix arrow-body linter
This commit is contained in:
@@ -26,16 +26,14 @@ export default class TimeSeriesLineChart extends React.Component {
|
||||
}
|
||||
|
||||
renderLines() {
|
||||
return this.props.data.map(function (d) {
|
||||
return (
|
||||
<V.VictoryLine
|
||||
key={d.key}
|
||||
data={d.values}
|
||||
interpolation="cardinal"
|
||||
style={{ data: { stroke: this.keysToColorsMap[d.key] } }}
|
||||
/>
|
||||
);
|
||||
});
|
||||
return this.props.data.map((d) => (
|
||||
<V.VictoryLine
|
||||
key={d.key}
|
||||
data={d.values}
|
||||
interpolation="cardinal"
|
||||
style={{ data: { stroke: this.keysToColorsMap[d.key] } }}
|
||||
/>
|
||||
));
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user