OrbCharts 文件
文件
返回首頁
Github
  • English
  • 繁體中文
文件
返回首頁
Github
  • English
  • 繁體中文
  • 指南
  • 基本概念

    • 6種資料格式
    • 核心技術
  • 快速開始 !

    • 安裝
    • 範例
  • 基礎使用

    • 建立圖表
    • 使用預設集(Preset)
    • 繪製圖表
    • 資料標籤
  • 圖表 API

    • plugins$
    • data$
    • chartParams$
    • dataFormatter$
    • event$
    • destroy()
  • Plugins

    • 建立 Plugin
    • Series

      • Bubbles
      • Pie
      • PieEventTexts
      • PieLabels
      • Rose
      • RoseLabels
      • SeriesLegend
      • SeriesTooltip
    • Grid

      • Bars
      • BarsPN
      • BarsTriangle
      • Dots
      • GridLegend
      • GridTooltip
      • GroupAux
      • GroupAxis
      • GroupZoom
      • Lines
      • LineAreas
      • StackedBars
      • StackedValueAxis
      • ValueAxis
    • MultiGrid

      • MultiBars
      • MultiBarsTriangle
      • MultiDots
      • MultiGridLegend
      • MultiGridTooltip
      • MultiGroupAxis
      • MultiStackedBars
      • MultiStackedValueAxis
      • MultiValueAxis
      • OverlappingValueAxes
      • OverlappingStackedValueAxes
    • MultiValue

      • MultiValueLegend
      • MultiValueTooltip
      • OrdinalAux
      • OrdinalAxis
      • OrdinalBubbles
      • OrdinalZoom
      • RacingBars
      • RacingCounterTexts
      • RacingValueAxis
      • Scatter
      • ScatterBubbles
      • XYAux
      • XYAxes
      • XYZoom
    • Relationship

      • ForceDirected
      • ForceDirectedBubbles
      • RelationshipLegend
      • RelationshipTooltip
    • Tree

      • TreeLegend
      • TreeMap
      • TreeTooltip

MultiStackedValueAxis

  • 名稱:Multi Stacked Value Axis(多組資料中的堆疊 Value 圖軸)

  • 說明:使用上等同於 Grid 資料類別中的 StackedValueAxis,搭配堆疊資料的圖形(目前有 MultiStackedBar) 的 Value 圖軸(預設為 Y 軸)。

  • Playground 範例

params$

  • 型別:Partial<MultiStackedValueAxisParams>

  • 欄位:

    名稱說明型別
    labelOffset擺放位置[number, number]
    labelColorType和外框的間距ColorType
    axisLineVisible底色顏色類別boolean
    axisLineColorType邊框顏色類別ColorType
    ticks圖例的間隔距離number | null
    tickFormat列表圖示寬度string | ((text: d3.NumberValue) => string | d3.NumberValue
    tickLineVisible列表圖示高度boolean
    tickPadding列表圖示圓角寬度number
    tickFullLine文字顏色類別boolean
    tickFullLineDasharray文字顏色類別string
    tickColorType文字顏色類別ColorType
    tickTextRotate文字顏色類別number
    tickTextColorType文字顏色類別ColorType
    gridIndexes對應的 data$ Grid 資料索引,可對應一組或多組 Grid 資料number[] | 'all'
詳細型別
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
  • 預設值:
{
  labelOffset: [0, 0],
  labelColorType: 'primary',
  axisLineVisible: false,
  axisLineColorType: 'primary',
  ticks: 4,
  tickFormat: num => {
    if (num === null || Number.isNaN(num) == true) {
      return num || 0
    }
    var parts = num.toString().split('.')
    parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',')
    return parts.join('.')
  },
  tickLineVisible: true,
  tickPadding: 20,
  tickFullLine: true,
  tickFullLineDasharray: 'none',
  tickColorType: 'secondary',
  tickTextRotate: 0,
  tickTextColorType: 'primary',
  gridIndexes: [0]
}