小编Ilm*_*nen的帖子

Jasper使用Highcharts的plotOptions.fillColor报告颜色问题

我正在使用自定义可视化组件和Highcharts 在Jaspersoft Studio 6.4中开发报告.

简而言之,在执行气泡图或面积图时,plotOptions.fillColor -attribute无法正常工作,但将气泡留在内部或堆积区域图表的内部为黑色.黑色通常表示未找到颜色,但区域图中的气泡/线条的线条可以正常工作.

以下是面积图的Highcharts脚本:

define(['jquery_hc','hchart'], function ($, Highcharts) {

	return function (instanceData) {	

	// Creating the chart
	var config = {

    chart: {
    	type: 'area',
    	plotBorderWidth: 1,
        renderTo: instanceData.id,
        width: instanceData.width,
		height: instanceData.height,
		marginBottom: 15,
		marginLeft: 40,
		marginRight: 5,
		marginTop: 5
    },
    title: {
    	text: ""
    },
    colors: ['#927453', '#9b672c', '#b0771e', '#e66726', '#474747', '#949494', '#feb40b', '#bd9c31', '#e0b33a'],
    xAxis: {
        allowDecimals: false,
        title: {enabled: false},
        labels: {enabled: false},
        visible: false
    },
	  legend: {
	  	itemStyle: {"fontSize": 6}, …
Run Code Online (Sandbox Code Playgroud)

javascript jasper-reports highcharts

5
推荐指数
1
解决办法
234
查看次数

标签 统计

highcharts ×1

jasper-reports ×1

javascript ×1