Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltip and tooltip formatting options for the features api inside the toolbox component #10202

Closed
jivanvl opened this issue Apr 2, 2019 · 2 comments · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Labels
en This issue is in English new-feature

Comments

@jivanvl
Copy link

jivanvl commented Apr 2, 2019

What problem does this feature solve?

It allows for the toolbox features names to have tooltip formats in the same fashion as some chart types, for example:

https://echarts.apache.org/option.html#series-heatmap.tooltip

What does the proposed API look like?

feature: {
  saveAsImage: {
    tooltip: {
      position: ...,
      formatter: ...,
      backgroundColor: ...,
      borderColor: ...,
      borderWidth: ...,
      padding: ...,
      textStyle: ...,
      extraCSSText: ...,
    }
  }
}
@echarts-bot
Copy link

echarts-bot bot commented Apr 2, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Apr 2, 2019
@Ovilia Ovilia removed pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Apr 3, 2019
Ovilia added a commit that referenced this issue Apr 10, 2019
Ovilia added a commit that referenced this issue Apr 10, 2019
Ovilia added a commit that referenced this issue Apr 12, 2019
Ovilia added a commit that referenced this issue Apr 12, 2019
@Ovilia
Copy link
Contributor

Ovilia commented Apr 15, 2019

We provided two methods to achieve this.
In #10231, more text style options are enabled to provide better control over the style of icon label.
In #10251, we provide a formatter so that user may decide their own DOM structure and CSS style.
Please refer to these two PRs for more detailed information.

Ovilia added a commit to apache/echarts-doc that referenced this issue Apr 15, 2019
@Ovilia Ovilia closed this as completed Apr 15, 2019
100pah added a commit that referenced this issue Apr 21, 2019
* 'master' of https://github.com/apache/incubator-echarts:
  fix: last axis label duplicated, fix #10304
  feat: support backgroundColor for connected charts in toolbox toolbox.feature.saveAsImage.connectedBackgroundColor can be used to set the background color. Fix #10099
  fix: set default position to be bottom
  test: add test case for b3a2548 #10202
  feat: support tooltip for toolbox #10202
  test: update test example
  feat: add toolbox text style support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature
Projects
None yet
2 participants