react-highcharts icon indicating copy to clipboard operation
react-highcharts copied to clipboard

Treemap series doesn't exist

Open ghost opened this issue 7 years ago • 5 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}/>
    }
}

ghost avatar Jun 20 '18 14:06 ghost

+1

Antbrooksuk avatar Jul 09 '18 15:07 Antbrooksuk

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

278kunal avatar Jul 17 '19 13:07 278kunal

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

kirjs avatar Oct 13 '19 18:10 kirjs

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

abhi-2020 avatar Jan 13 '20 10:01 abhi-2020

is this issue fixed now ? can I use treemap?

arpisunny avatar Dec 03 '20 12:12 arpisunny