Skip to content

[Enhancement] data schema for the graph should be an object instead of array #112

@xubinzheng

Description

@xubinzheng

Detailed description

Enhancement: use object instead of an array for data in graphs

Seems the data schema in Carbon has to be nested array. However, by using GraphQL or some other framework, the array could only have one single type.
image

as shown in the screenshot, the data schema is like
[ [[value1, value2, value3], title1] , [[valueA, valueB, valueC], title2] ]

Is this issue related to a specific component?
Seems all components

What did you expect to happen? What happened instead? What would you like to see changed?

maybe support something like

[
{
data: [value1, value2, value3],
title: title1
} ,
{
data: [valueA, valueB, valueC],
title: title2
}
]

as data schema

What browser are you working in?

Chrome

What version of the Carbon Design System are you using?

15

Add labels

enhancement

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions