V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
luofan004
V2EX  ›  程序员

echart line issue

  •  
  •   luofan004 · 2018-07-18 18:00:51 +08:00 · 1274 次点击
    这是一个创建于 2080 天前的主题,其中的信息可能已经有所发展或是发生改变。

    想要条水平线,死活出不来,大兄弟些帮帮忙~~ option = { color: ['#339933', '#1da0df', '#1da0df'], title: { text: '生产力及指标分析 - 招商' }, legend: { data:['平均指标', '平均生产力'] }, xAxis: { type: 'category', name: '达成率(数值)', nameLocation: 'start', nameGap: 20, data: ["\u003c0.8", "0.8-0.9", "0.9-1.0", "1.0-1.1", "1.1-1.2", "1.2-1.3", "1.3-1.4", "1.4-1.5", "1.5-1.8", "\u003e=1.8"] }, yAxis: { type: 'value', axisLabel: { formatter: '{value}' }, name: '生产力(支)' }, series: [ { data: [42945, 55953, 38627, 74886, 92295, 82662, 117989, 97478, 61983, 47599], type: 'bar', label: { normal: { show: true, position: 'top', formatter: function(a) { return a.value.toLocaleString(); } } }, }, { data: [21627, 46799, 38550, 78722, 106078, 102884, 157919, 141994, 99011, 101340], type: 'bar', label: { normal: { show: true, position: 'top', formatter: function(a) { return a.value.toLocaleString(); } } }, }, { type: 'line', name: '平均指标', lineStyle:{ color: 'red' }, markline: { data:[ {name: '平均指标', yAxis: 76222.65}, ] } } ], };

    2 条回复    2018-07-19 16:39:49 +08:00
    charexcalibur
        1
    charexcalibur  
       2018-07-18 18:20:56 +08:00
    先花 5 分钟学一下 markdown 语法吧。
    luofan004
        2
    luofan004  
    OP
       2018-07-19 16:39:49 +08:00
    解决了哈,大小写拼错了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5405 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:52 · PVG 15:52 · LAX 00:52 · JFK 03:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.