Integrate Highchart with Python Dash

Viewed 516

I want to integrate a Highchart code with the Dash that I have already developed . I referred the github linkDash alternate-viz but i did not find how to embed .

Can someone suggest any guidance.

The highchart code that I want to embed is

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/draggable-points.js"></script>

<div id="container" style="min-width: 300px;height: 500px;"></div>

Highcharts.chart('container', {
    chart: {
        animation: false
    },

    title: {
        text: 'Highcharts draggable bubbles demo'
    },

    tooltip: {
        valueDecimals: 2
    },

    series: [{
        type: 'bubble',
        cursor: 'move',
        dragDrop: {
            draggableX: false,
            draggableY: true
        },
        data: [
            [100, 240, 3],
            [200, 130, 10],
            [450, 290, 15]
        ]
    }],

    yAxis: {
        softMin: 0,
        softMax: 350
    }
});

As per the requirement when I click a button in Dash I should be able to run this code and give the output in Dash.

Can someone help me with this requirement. Dash code I have written already but I don’t know how to embed this highchart version.

Thanks, Meera

0 Answers
Related