question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image symbol disappeared after legend selection is toggled in line series.

See original GitHub issue

使用symbol进行自定义拐点图片时,添加图例后试用图例控制折线图的显示隐藏后,在第一次显示自定义图片后,后面不再显示

option = {
        tooltip : {
            trigger: 'axis',
        },
        legend: {
            data:['邮件营销']
        },
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            name:'邮件营销',
            data: [120, 200, 150, 80, 70, 110, 130],
            type: 'line',
            symbol: 'image://https://www.skytk.cn/wp-content/uploads/2018/06/fac.png',
            symbolSize: 20,
            lineStyle: {
                normal: {
                    color: 'green',
                    width: 4,
                    type: 'dashed'
                }
            },
            itemStyle: {
                normal: {
                    borderWidth: 3,
                    borderColor: 'yellow',
                    color: 'blue'
                }
            }
        }]
    };

第一次加载时 image

点击图例隐藏再显示后 image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pissangcommented, Oct 30, 2019
0reactions
yukai1202commented, Oct 11, 2019

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Origin Help - Graph Legends - OriginLab
To hide legend symbol(s):​​ Right-click on the legend and select Legend: Hide Legend Symbol from context menu. This selection is equivalent to setting...
Read more >
NaN point value makes series disappear@3.19.0 · Issue #1559
Toggling one legend on the demo shown on below link seems to toggle all series at once. Experience this when library is deployed...
Read more >
To hide an item from display in the legend | Power BI Exchange
Dear all, I have a line and stacked column chart. The line is only used to show the total of the columns and...
Read more >
Show or hide a chart legend or data table - Microsoft Support
Select a chart and then select the plus sign to the top right. Point to Legend and select the arrow next to it....
Read more >
Drawing objects do not plot and are missing from print preview ...
Go to "Form View" tab > Select the colour being used for the items not plotting. For example, layer 0 is set to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found