如何在饼图中的两列中显示图例

时间:2015-05-12 07:50:21

标签: angularjs highcharts

我想在饼图中的两列中显示图例。我的JSfiddle:http://jsfiddle.net/Cp73s/2185/

itemStyle: {            
                 width:200,
                 font: 'Helvetica Neue'
              },

3 个答案:

答案 0 :(得分:1)

试试这个

    legend: {
        borderRadius: 0,
        borderColor: 'silver',
        enabled: true,
        margin: 30,
        itemMarginTop: 2,
        itemMarginBottom: 2,
        width:200,
        itemWidth:100,
        itemStyle: {
          width:100
        }   
    }

fiddle link :)

答案 1 :(得分:0)

答案 2 :(得分:0)

您需要设置一些内容才能使它看起来像您期望的那样。 首先,您需要将 Dim JiraReq As New MSXML2.XMLHTTP60 With JiraReq ' Create Session downloadUrl = https://myurlishere.atlassian.net ' This is not the actual form of the URL, but it does ' successfully grab the CSV string (but the string variable ' will not store all of it - probably because of the size) .Open "GET", downloadUrl, False .setRequestHeader "Authorization", "Basic " + EncodeBase64(username + ":" + password) .setRequestHeader "Cache-Control", "no-cache" .setRequestHeader "Pragma", "no-cache" .send End With CSVData = JiraReq.responseText If JiraReq.Status = 200 Then Set oStream = CreateObject("ADODB.Stream") oStream.Open oStream.Type = 1 oStream.Write JiraReq.responseText Filename = "C:\file" & i & ".csv" oStream.SaveToFile Filename, 2 oStream.Close End If 参数更改为layout,启用'horizontal',将图例的固定floating设置为例如width,最后-通过300个参数。这是代码和示例:

x, y

实时示例:https://jsfiddle.net/9pnru4s7/