Skip to content

[Feature] Add tooltip formatter with params #86

@Alexenon

Description

@Alexenon

Describe the solution you'd like
I would like to request a feature that allows to define a tooltip formatted in Java similar to how it's done in JavaScript.
Specifically, the ability to dynamically format the tooltip formatter content based on function params, such as name, value, etc.

Echarts Javascript Example

    tooltip: {
      trigger: 'item',
      className: 'chart-tooltip',
      formatter(params) {
        return `
            <div class="tooltip-content">
                ${params.marker}
                <p id="selected-category" class="tooltip-category">${params.name}</p>
                <p class="tooltip-value">${params.value}</p>
                <p class="tooltip-currency">MDL</p>
                <div class="tooltip-percent">${params.percent}%</div>
            </div>
        `
      }
    },

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions