Skip to content
Snippets Groups Projects
Commit 1adaa1e5 authored by esikkala's avatar esikkala
Browse files

Clean up

parent 85cb628d
No related branches found
No related tags found
No related merge requests found
...@@ -54,18 +54,7 @@ class ApexChart extends React.Component { ...@@ -54,18 +54,7 @@ class ApexChart extends React.Component {
// Render the chart when data changes // Render the chart when data changes
if (prevProps.data != this.props.data) { if (prevProps.data != this.props.data) {
console.log(this.props.data) console.log(this.props.data)
//let categories = this.props.data.reduce((obj, item) => (obj[item.id] = item.type, obj) ,{}); //let categories = this.props.data.reduce((obj, item) => (obj[item.id] = item.type, obj) ,{});
// for (let [key, value] of Object.entries(categories)) {
// value.map(obj => {
// if (!has(series, obj.id)) {
// series[obj.id] = {
// name: obj.prefLabel,
// data: [ ]
// }
// }
// })
// }
const options = { const options = {
...this.props.options, ...this.props.options,
series: [ series: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment