如何在highcharts中开发列和行的组合图表和多个组件

时间:2013-07-20 04:09:16

标签: highcharts

highcharts 我正在努力开发线和列的组合图表以及高图中的多个组件。 这里每个组件都有不同的x轴值。请帮帮我

提前致谢

一般来说,我的确切问题是........................

第一个组件:componentA

 var y1-axis: [
            {
                "name" : "3D",
                "type" : "line",
                "data" : ["0","0","0"]

            },

            {
                "name" : "3C",
                "type" : "line",
                "data" : ["0","0","0"]
            },

            {
                "name" : "3B-NDT",
                "type" : "line",
                "data" : ["0","0","0"]
            },
            {
                "name" : "3B",
                "type" : "line",
                "data" : ["0","0","0"]
            }]


 var x1-axis : [
            {
                "name" : "jobDescription",
                "type" : "",
                "data"  : ["7799","1046","1112"]

            }

         ]

第二部分:componentB

 var y2-axis: [
            {
                "name" : "3D",
                "type" : "column",
                "data" : ["0","7.98","0"]

            },

            {
                "name" : "3C",
                "type" : "column",
                "data" : ["0","1.82","6.64"]
            },

            {
                "name" : "3B-NDT",
                "type" : "column",
                "data" : ["0","48.12","37.87"]
            }]

 var x2-axis : [
            {
                "name" : "jobDescription1",
                "type" : "",
                "data"  : ["7801", "1111", "1147"]

            }

         ]

hw可以在单个图表中设计具有两个组件的柱形图,如

请找到附图的高图

1 个答案:

答案 0 :(得分:0)

通常情况下,使用此示例中的xAxis.leftxAxis.width可能会出现类似情况:http://jsfiddle.net/45v24/4/

然而,看起来工具提示有bug,报告here