kirjs / react-highcharts

React wrapper for Highcharts library

Home Page:http://kirjs.github.io/react-highcharts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Treemap series doesn't exist

opened this issue · comments

Using series type as treemap gives me a series doesn't exist error.

...
import ReactHighMaps from "react-highcharts/ReactHighmaps";

class TreeMap extends React.Component {
    render() {
        const config = {
            colorAxis: {
                minColor: '#FFFFFF',
                maxColor: ReactHighcharts.Highcharts.getOptions().colors[0]
            },
            series: [{
                type: 'treemap',
                layoutAlgorithm: 'squarified',
                data: [{
                    name: 'A',
                    value: 6,
                    colorValue: 1
                }, {
                    name: 'B',
                    value: 6,
                    colorValue: 2
                }, {
                    name: 'C',
                    value: 4,
                    colorValue: 3
                }, {
                    name: 'D',
                    value: 3,
                    colorValue: 4
                }, {
                    name: 'E',
                    value: 2,
                    colorValue: 5
                }, {
                    name: 'F',
                    value: 2,
                    colorValue: 6
                }, {
                    name: 'G',
                    value: 1,
                    colorValue: 7
                }]
            }],
            title: {
                text: 'Highcharts Treemap'
            }
        }
        return <ReactHighMaps config={config}/>
    }
}

I am also facing the same issue, can the developer please provide an update on this.

Please help us by reproducing your issue here:
https://stackblitz.com/fork/react-highcharts-demo

Still facing the same issue. Did anyone figure out any solution?

is this issue fixed now ?
can I use treemap?