Giter VIP home page Giter VIP logo

Comments (4)

sunhailin-Leo avatar sunhailin-Leo commented on July 22, 2024

@byemaxx

  • Can you show me the full json data after render in HTML files?

from pyecharts.

byemaxx avatar byemaxx commented on July 22, 2024

Hi, the following are the html rendering from the code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
                <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts-gl.min.js"></script>

</head>
<body >
    <div id="7888c0b810d44f4b994f1b87c6891b54" class="chart-container" style="width:900px; height:500px; "></div>
    <script>
        var chart_7888c0b810d44f4b994f1b87c6891b54 = echarts.init(
            document.getElementById('7888c0b810d44f4b994f1b87c6891b54'), 'white', {renderer: 'canvas'});
        var option_7888c0b810d44f4b994f1b87c6891b54 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "bar3D",
            "name": "series_0",
            "data": [
                [
                    0,
                    0,
                    16
                ],
                [
                    0,
                    1,
                    16
                ],
                [
                    0,
                    2,
                    16
                ],
                [
                    1,
                    0,
                    16
                ],
                [
                    1,
                    1,
                    16
                ],
                [
                    1,
                    2,
                    16
                ],
                [
                    2,
                    0,
                    16
                ],
                [
                    2,
                    1,
                    16
                ],
                [
                    2,
                    2,
                    16
                ]
            ],
            "label": {
                "show": false,
                "margin": 8
            },
            "grid3DIndex": 0,
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            },
            "stack": "stack",
            "emphasis_opts": {
                "disabled": false,
                "scale": true,
                "focus": "series",
                "blurScope": "coordinateSystem",
                "labelLine": {
                    "show": false
                }
            }
        },
        {
            "type": "bar3D",
            "name": "series_1",
            "data": [
                [
                    0,
                    0,
                    8
                ],
                [
                    0,
                    1,
                    8
                ],
                [
                    0,
                    2,
                    8
                ],
                [
                    1,
                    0,
                    8
                ],
                [
                    1,
                    1,
                    8
                ],
                [
                    1,
                    2,
                    8
                ],
                [
                    2,
                    0,
                    8
                ],
                [
                    2,
                    1,
                    8
                ],
                [
                    2,
                    2,
                    8
                ]
            ],
            "label": {
                "show": false,
                "margin": 8
            },
            "grid3DIndex": 0,
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            },
            "stack": "stack",
            "emphasis_opts": {
                "disabled": false,
                "scale": true,
                "focus": "series",
                "blurScope": "coordinateSystem",
                "labelLine": {
                    "show": false
                }
            }
        },
        {
            "type": "bar3D",
            "name": "series_2",
            "data": [
                [
                    0,
                    0,
                    4
                ],
                [
                    0,
                    1,
                    4
                ],
                [
                    0,
                    2,
                    4
                ],
                [
                    1,
                    0,
                    4
                ],
                [
                    1,
                    1,
                    4
                ],
                [
                    1,
                    2,
                    4
                ],
                [
                    2,
                    0,
                    4
                ],
                [
                    2,
                    1,
                    4
                ],
                [
                    2,
                    2,
                    4
                ]
            ],
            "label": {
                "show": false,
                "margin": 8
            },
            "grid3DIndex": 0,
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            },
            "stack": "stack",
            "emphasis_opts": {
                "disabled": false,
                "scale": true,
                "focus": "series",
                "blurScope": "coordinateSystem",
                "labelLine": {
                    "show": false
                }
            }
        },
        {
            "type": "bar3D",
            "name": "series_3",
            "data": [
                [
                    0,
                    0,
                    10
                ],
                [
                    0,
                    1,
                    10
                ],
                [
                    0,
                    2,
                    10
                ],
                [
                    1,
                    0,
                    10
                ],
                [
                    1,
                    1,
                    10
                ],
                [
                    1,
                    2,
                    10
                ],
                [
                    2,
                    0,
                    10
                ],
                [
                    2,
                    1,
                    10
                ],
                [
                    2,
                    2,
                    10
                ]
            ],
            "label": {
                "show": false,
                "margin": 8
            },
            "grid3DIndex": 0,
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            },
            "stack": "stack",
            "emphasis_opts": {
                "disabled": false,
                "scale": true,
                "focus": "series",
                "blurScope": "coordinateSystem",
                "labelLine": {
                    "show": false
                }
            }
        },
        {
            "type": "bar3D",
            "name": "series_4",
            "data": [
                [
                    0,
                    0,
                    10
                ],
                [
                    0,
                    1,
                    10
                ],
                [
                    0,
                    2,
                    10
                ],
                [
                    1,
                    0,
                    10
                ],
                [
                    1,
                    1,
                    10
                ],
                [
                    1,
                    2,
                    10
                ],
                [
                    2,
                    0,
                    10
                ],
                [
                    2,
                    1,
                    10
                ],
                [
                    2,
                    2,
                    10
                ]
            ],
            "label": {
                "show": false,
                "margin": 8
            },
            "grid3DIndex": 0,
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            },
            "stack": "stack",
            "emphasis_opts": {
                "disabled": false,
                "scale": true,
                "focus": "series",
                "blurScope": "coordinateSystem",
                "labelLine": {
                    "show": false
                }
            }
        }
    ],
    "legend": [
        {
            "data": [
                "series_0",
                "series_1",
                "series_2",
                "series_3",
                "series_4"
            ],
            "selected": {}
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "xAxis3D": {
        "data": [
            "a",
            "b",
            "c"
        ],
        "show": true,
        "scale": false,
        "grid3DIndex": 0,
        "nameGap": 20,
        "logBase": 10,
        "splitLine": {
            "show": true,
            "lineStyle": {
                "show": true,
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            }
        }
    },
    "yAxis3D": {
        "data": [
            "A",
            "B",
            "C"
        ],
        "show": true,
        "scale": false,
        "grid3DIndex": 0,
        "nameGap": 20,
        "logBase": 10,
        "splitLine": {
            "show": true,
            "lineStyle": {
                "show": true,
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            }
        }
    },
    "zAxis3D": {
        "show": true,
        "scale": false,
        "grid3DIndex": 0,
        "nameGap": 20,
        "logBase": 10,
        "type": "value",
        "splitLine": {
            "show": true,
            "lineStyle": {
                "show": true,
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            }
        }
    },
    "grid3D": {
        "boxWidth": 200,
        "boxHeight": 100,
        "boxDepth": 80,
        "splitLine": {
            "show": true,
            "lineStyle": {
                "show": true,
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            }
        },
        "environment": "auto",
        "viewControl": {
            "autoRotate": false,
            "autoRotateSpeed": 10,
            "rotateSensitivity": 1,
            "alpha": 20,
            "beta": 40,
            "minAlpha": -90,
            "maxAlpha": 90
        },
        "zlevel": -10,
        "left": "auto",
        "top": "auto",
        "right": "auto",
        "bottom": "auto"
    }
};
        chart_7888c0b810d44f4b994f1b87c6891b54.setOption(option_7888c0b810d44f4b994f1b87c6891b54);
    </script>
</body>
</html>

from pyecharts.

sunhailin-Leo avatar sunhailin-Leo commented on July 22, 2024

@byemaxx

  • Because of the 3D Chart emphasis_opts is different to normal charts.

from pyecharts.

sunhailin-Leo avatar sunhailin-Leo commented on July 22, 2024

@byemaxx

  • Closed it then waiting for the new version.

from pyecharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.