kirjs / react-highcharts

React wrapper for Highcharts library
http://kirjs.github.io/react-highcharts/
MIT License
1.26k stars 233 forks source link

Treemap series doesn't exist #406

Open ghost opened 6 years ago

ghost commented 6 years ago

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}/>
    }
}
Antbrooksuk commented 6 years ago

+1

278kunal commented 5 years ago

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

kirjs commented 5 years ago

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

abhi-2020 commented 4 years ago

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

arpisunny commented 3 years ago

is this issue fixed now ? can I use treemap?