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.

Highlighting the clicked month

See original GitHub issue

test

I want to get the selected month by user highlighted!! as you can see in the image i have attached. I have come close by using brush, but still could not acheive it completely. When I dispatch an action, lets say I pass [‘Mar’, ‘Apr’] to coordRange property, and it makes a brush between Mar and April, I want it to be highlighted exactly April if user selected April. Thanks

One-line summary [问题简述]

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
vikramkaltacommented, May 31, 2018

@thomaspessato I have tried dispatching action, it works for a click, on every click just pass the ev.dataIndex to dataIndex property https://ecomfe.github.io/echarts-doc/public/en/api.html#action

2reactions
vikramkaltacommented, May 31, 2018

set emphasize to false in the options or refer the docs, and set emphasize for each click. or you can dispatch an action on a click and that would do the same!! dispatchAction({ type: ‘highlight’, // optional; series index; could be an array of multiple series seriesIndex?: number|Array, // optional; series name; could be an array of multiple series seriesName?: string|Array, // options are index of data dataIndex?: number, // options are data name name?: string })

refer the api section in echarts website

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highlighting the clicked month · Issue #8160 · apache/echarts
I want to get the selected month by user highlighted!! as you can see in the image i have attached. I have come...
Read more >
How to highlight a range of selected months - Stack Overflow
I used approach where overall months are represented by one large Array (monthsData) since the use case needs to support months selection across ......
Read more >
Highlight Current Month in the Line Chart | Power BI - YouTube
In this video I'll share a visualization technique to highlight the current month in a Line Chart. Enjoy!
Read more >
Highlighting Current Day on Javascript Calendar - SitePoint
I have the script I have worked on from a book. However, I am confused as to how I can highlight the current...
Read more >
Highlight month selected on visual A, in visual B
I'd like when a month is selected in Visual A, that it will highlight the same ... Select the visual, and click Edit...
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