如何在LightningChart Js 中加载图表时隐藏defaultAxisTickStretegy
为了隐藏轴刻度,您应该将tickStyle设置为emptyTick。下面是一个带隐藏刻度的2点线系列图表示例:
// Import LightningChartJS
const lcjs = require('@arction/lcjs')
// Extract required parts from LightningChartJS.
const {
lightningChart,
emptyTick
} = lcjs
// Create a XY Chart.
const chart = lightningChart().ChartXY().setTitle('Empty ticks')
// Hide ticks for both axes
chart.getDefaultAxisX().setTickStyle(emptyTick)
chart.getDefaultAxisY().setTickStyle(emptyTick)
// Add line series
const series = chart.addLineSeries()
const points = [{x: 0, y: 0}, {x: 100, y: 100}]
// Add points to the series
series.add(points)