ESM
import { WithRoundedCorners } from "@arcgis/charts-components/model/properties/rounded-corners.js";
Inheritance
WithRoundedCorners→chart-model-base→EventTarget
Subclasses
bar-chart-model, combo-bar-line-chart-model

Adds support for configuring rounded corners on charts that support it. NOTE: Currently only bar charts and the bar series in combo bar-line charts.

Constructors

Constructor

inherited Constructor
Inherited from: ChartModelBase

Parameters

ParameterTypeDescriptionRequired
args
any[]

Properties

asyncUpdatesPromise

inherited Property
Type
Promise<void>
Inherited from: ChartModelBase

Promise that resolves when the setup process is complete.

Note: This promise does not need to be awaited if the setup method has already been awaited. It is simply provided as a way to await the setup process from other functions if needed to avoid race conditions.

chartType

readonlyinherited Property
Type
ChartTypes
Inherited from: ChartModelBase

The chart type.

cornerRadius

Property
Type
number | undefined

Gets the rounded corner radius for the chart. Known limitation: Rounded corners are not rendered when chart interactions are disabled (interactionsDisabled or disableInteractions is true).

dataStore

inherited Property
Type
any
Inherited from: ChartModelBase

Data store object that can be used to store any data needed for the chart.

revision

readonlyinherited Property
Type
number
Inherited from: ChartModelBase

The current revision number of the chart configuration. Increments with each update.

roundCorners

Property
Type
boolean

Gets whether rounded corners are enabled for the chart. Known limitation: Rounded corners are not rendered when chart interactions are disabled (interactionsDisabled or disableInteractions is true).

Methods

MethodSignatureClass
inherited
generateChartTitle(): string
inherited
isSameChartAs(otherModel: ChartModel | undefined): boolean
inherited
recall(configRevision?: number): ChartConfig | undefined
inherited
setup(params: ModelParams<ChartConfig>): Promise<void>
inherited
update(): Promise<void>

generateChartTitle

inherited Method
Signature
generateChartTitle (): string
Inherited from: ChartModelBase

Generate the proper chart title from the current config.

Returns
string

isSameChartAs

inherited Method
Signature
isSameChartAs (otherModel: ChartModel | undefined): boolean
Inherited from: ChartModelBase

Checks if the current chart model is for the same chart as another chart model.

Parameters

ParameterTypeDescriptionRequired
otherModel

The other chart model to compare to.

Returns
boolean

recall

inherited Method
Signature
recall (configRevision?: number): ChartConfig | undefined
Inherited from: ChartModelBase

Recalls a previous chart configuration based on its revision number. Returns undefined if the requested revision is not available (beyond the stored history limit).

If no configRevision number is provided, it recalls the last configuration just before the current one.

Parameters

ParameterTypeDescriptionRequired
configRevision
Returns
ChartConfig | undefined

setup

inherited Method
Signature
setup (params: ModelParams<ChartConfig>): Promise<void>
Inherited from: ChartModelBase

Completes the async setup process for the chart model. Must be called before using the model.

Parameters

ParameterTypeDescriptionRequired
params

The parameters to be used to set up the chart model.

Returns
Promise<void>

update

inherited Method
Signature
update (): Promise<void>
Inherited from: ChartModelBase

Can be awaited to allow any pending async updates to complete.

Returns
Promise<void>