Skip to content

How to use Watermark #690

Answered by mprzydatek
mprzydatek asked this question in Q&A
Discussion options

You must be logged in to vote

OK, i just found it myself. It can be achieved with the "graphic" option like this:

import { GraphicComponent } from 'echarts/components'

graphic: [
  {
    type: 'group',
    rotation: Math.PI / 4,
    bounding: 'raw',
    right: 110,
    bottom: 110,
    z: 100,
    children: [
      {
        type: 'rect',
        left: 'center',
        top: 'center',
        z: 100,
        shape: {
          width: 400,
          height: 50,
        },
        style: {
          fill: 'rgba(0,0,0,0.3)',
        },
      },
      {
        type: 'text',
        left: 'center',
        top: 'center',
        z: 100,
        style: {
          fill: '#fff',
          text: 'ECHARTS LINE CHART',
      …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mprzydatek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant