Updated on 2022-02-22 GMT+08:00

Line Chart

This section describes parameters of a line chart.

Pattern

  • Size/Position
    • Size: width and height of the component. Unit: pixel.
    • Position: position where the component is located in the canvas. Unit: pixel.
    Figure 1 Size and position of a line chart
  • Global Style
    • Font: text font.
    • Curve: to set a curve by clicking .
  • Margin
    • Top: spacing between the top sides of the chart and the component layer. You can enter a value or click to adjust the spacing.
    • Bottom: spacing between the bottom sides of the chart and the component. You can enter a value or click to adjust the spacing.
    • Left: spacing between the left sides of the chart and the component. You can enter a value or click to adjust the spacing.
    • Right: spacing between the right sides of the chart and the component. You can enter a value or click to adjust the spacing.
  • X Axis
    • X Axis: to show or hide the X axis by clicking or .
    • Text: text style of the X axis, including Font Size, Color, Font Width, and Angle.
    • Data Type: data type of the X axis. The value can be Value, Category, Time, or Log.
    • Scales: When Data Type is set to Value or Time, the number of displayed labels is automatically displayed based on the value of Scales. This parameter is invalid when Data Type is set to other values.
    • Color: color of the X axis.
    Figure 2 X axis of a line chart
  • Y Axis
    • Y Axis: to show or hide the Y axis by clicking or .
    • Text: text style of the Y axis, including Font Size, Color, Font Width, Display Format, Angle, and Axis Label.
    • Axis Unit: unit of the Y axis.
    • Coordinate Axis: color of the Y axis.
    • Grid Line: grid line color of the Y axis.
    Figure 3 Y axis of a line chart
  • Legend
    • Legend: to show or hide the legend by clicking or .
    • Text: text style of the legend, including Font Size, Color, and Font Width.
    • Layout: position where the legend is located.
    Figure 4 Legend of a line chart
  • Message
    • Message: If you click , a message will pop up when you hover over a previewed or published component.
    • Triggering Mode: to set the triggering mode of messages. The options are Coordinate Axis and Data.
    • Color: font color of the message.
    • Font Size: font size of the message.
    • Font Width: font width of the message.
    Figure 5 Message of a line chart
  • Animation
    • Click or next to Animation to hide or show animation, respectively.
    • Duration: duration of the first rendering of the component, in ms.
    • Animation Effect: The system provides multiple common animation slow-moving effects.
    • Animate in Order: If this option is selected, the series are animated in sequence. If this option is deselected, all series are animated at the same time.
    • Duration After Change: animation duration when the component data is updated, in ms.
    • Start from Previous Position: If this option is selected, the animation is played from the position of the previous data when the component data is updated. If this option is deselected, the animation is played from the initial position when the component data is updated.
    Figure 6 Animation (line chart)

Data

For details about how to configure component data, see Configuring Component Data.

Interaction

For details about whether the component supports the interaction function and how to use the interaction function, see Configuring Component Interaction.