Skip to content

Type Alias: AttributeUpdate ​

ts
type AttributeUpdate = Readonly<Record<string, unknown>>;

Attribute-string edits: { 'marker.color': 'red', 'xaxis.range[0]': 2 }. Keys are attribute paths, so values are not typed: the escape hatch of restyle, whose array values hold one value per trace.

Released under the MIT License.