{ /* 图表标题 */ "title":{ "text": "网站访问统计", "style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}" }, /* X轴标题 */ "x_legend":{ "text": "时间", "style": "{font-size: 12px; color:#736AFF;}" }, /* Y轴标题 */ "y_legend":{ "text": "views", "style": "{color: #736AFF; font-size: 12px;}" }, "is_decimal_separator_comma": 0, /* (0/1)，是否用逗号替换小数点 */ "is_fixed_num_decimals_forced": 1, /* (0/1)，是否强制小数点后面的位数 */ "num_decimals":0, /* 精度，即小数点后面的位数，需要配合上面参数一起使用 */ "is_thousand_separator_disabled": 0, /* (0/1)，是否使用千位分隔符 */ "x_axis":{ "stroke":1, /* X轴的粗细 */ "tick_height": 10, /* X轴刻度的长度 */ "colour":"#d000d0", /* 颜色 */ "grid_colour":"#00ff00", /* 网格线的颜色 */ "offset": 1, /* (0/1), 是否根据数据图形和标签的宽度进行延展 */ "3d": 0, /* 显示3D */ "steps": 1, /* 刻度间隔 */ "labels": { "labels": ["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23"] } }, "y_axis":{ "stroke": 1, "tick_length": 3, "colour": "#d000d0", "grid_colour": "#00ff00", "offset": 0, "max": ${max+10!}, "steps": ${max!} }, "elements":[ { "type": "line", /* 可选值有bar，line，pie等 */ "alpha": 0.5, "colour": "#9933CC", "text": "访问量", "font-size": 10, "values" : [<#list views as v>${v!}<#if v_has_next>,] } ], "tooltip":{ "shadow": false, /* 提示框影子 */ "stroke": 2, /* 边框粗细 */ "rounded": 1, /* 边角圆滑程度 */ "colour":"#00d000", /* 边框颜色 */ "background":"#d0d0ff", /* 背景颜色 */ "title":"{font-size: 18px; color: #000000; font-weight:bold;}", /* 标题样式 */ "body":"{font-size: 10px; color: #000000;}" /* 本体样式 */ } }