融合图中标签的自定义样式

时间:2018-12-19 00:28:51

标签: fusioncharts

我发现以下融合图表示例描述了竖线的用法: https://jsfiddle.net/fusioncharts/L5dfydco/

FusionCharts.ready(function() {
  var revenueChart = new FusionCharts({
    type: 'line',
    renderAt: 'chart-container',
    width: '500',
    height: '300',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "theme": "fusion",
        "caption": "Visitors to website",
        "subCaption": "Last week",
        "xAxisName": "Day",
        "yAxisName": "Visits",
        "showValues": "0"
      },
      "data": [{
        "label": "Mon",
        "value": "5123"
      }, {
        "label": "Tue",
        "value": "4233"
      }, {
        "label": "Wed",
        "value": "5507"
      }, {
        "label": "Thu",
        "value": "4110"
      }, {
        "label": "Fri",
        "value": "5529"
      }, {
        //Setting data as vline data
        "vline": "true",
        //Adding label
        "label": "Weekend Start",
        "linePosition": "0.7"
      }, {
        "label": "Sat",
        "value": "5803"
      }, {
        "label": "Sun",
        "value": "6202"
      }]
    }
  });

  revenueChart.render();
});
  • 是否可以自定义标签部分,以便将其呈现为html,并以不同的方式设置/定位不同的单词?我想要的东西类似于Highchart的格式化程序,在该程序中我可以根据数据格式化标签。

0 个答案:

没有答案