【问题标题】:Fever Chart in FusionChartsFusionCharts 中的发热图表
【发布时间】:2015-01-23 19:16:22
【问题描述】:

是否可以使用 FusionCharts 制作发烧图表?

我正在尝试用对角线制作散点图,但我需要绘制背景,但我找不到任何方法。

另外,图表背景不能是图像,因为绘图可能会改变(n种可能性)

如果您知道任何其他方法,请告诉我!

发烧图表示例:

【问题讨论】:

    标签: charts fusioncharts


    【解决方案1】:

    您是否正在使用 FusionCharts 寻找类似的东西?

    http://jsfiddle.net/subramaniashiva/wzcujwmr/

    您可以使用 canvasBgColor 属性并配置您想要的颜色。您还可以使用this

    根据您的要求动态更改此属性
    FusionCharts.ready(function () {
        var visitChart = new FusionCharts({
            type: 'line',
            renderAt: 'chart-container',
            width: '500',
            height: '300',
            dataFormat: 'json',
            containerBackgroundOpacity: "0",
            dataSource: {
                "chart": {
                    "xAxisName": "% of duration consumed",
                    "yAxisName": "% of duration buffer consumed",
    
                    //Cosmetics
                    "lineThickness" : "2",
                    "baseFont" : "Helvetica Neue,Arial",
                    "bgColor": "#ffffff",
                    "showBorder" : "0",
                    "showShadow" : "0",
                    "showValues": "0",
                    "canvasBorderAlpha" : "0",
                    "divlineAlpha" : "100",
                    "divlineColor" : "#000000",
                    "divlineThickness" : "1",
                    "divLineIsDashed" : "1",
                    "divLineDashLen" : "1",
                    "divLineGapLen" : "1",
                    "lineColor": "#000000",
                    "showXAxisLine" : "0",
                    "showAlternateHGridColor" : "0",
                    "anchorRadius": "0",
                    "numberSuffix": "%",
                    "canvasBgColor": "#FF0000,#FFFF00,#00AF50",
                    "canvasBgAlpha": "100,100,100",
                    "canvasBgAngle": "45",
                    "canvasBgRatio": "10,50,40"
                },
                "data": [
                    {
                        "label": "0%",
                        "value": "0"
                    },
                    {
                        "label": "10%",
                        "value": "8"
                    },
                    {
                        "label": "20%",
                        "value": "16"
                    },
                    {
                        "label": "30%",
                        "value": "29"
                    },
                    {
                        "label": "40%",
                        "value": "35"
                    },
                    {
                        "label": "50%",
                        "value": "42"
                    },
                    {
                        "label": "60%",
                        "value": "57"
                    }
                ]
            }
        });
    
        visitChart.render();
    });
    

    【讨论】:

    • 我们已经使用 canvas 使用 HTML5 做到了这一点,但我将把它发送给负责的开发人员,以便他研究其他可能性。非常感谢!
    猜你喜欢
    • 2020-12-19
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-19
    • 2021-01-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多