Skip to content

Line chart- multiple lines with multiple datasets #1875

Description

@TheAndre980

I'm currently building a angular project where i need to draw a line chart with multiple datasets.

Angular 14
dc.js 4.2.7

Example object format:
{ id: "string", datasets: [ id: "string", data: []; color: "string"; ] }

I followed some examples and only could made a series chart where each line is an address. where's a clean run of what i've got:
https://jsfiddle.net/TheAndre98/zexncpd5/41/
*in this example the data arrays start seperated from the color string

Tried to change the dimension and tried colors with colorAcessor but nothing worked.

Is it possible to make a line chart where each line is a address and the color of the line is the from the dataset ?
Meaning multiple lines with same address but diferent colors and values.

** if not, is it possible to do something similiar with a bar chart too ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions