Skip to content

[ISSUE] Series bar chart not shown on version 1.6.32 #1046

@vildantursic

Description

@vildantursic

Working version 1.6.31

Non working version 1.6.32

Code snippet from my repo

series: [
    {},
    {
        label: "Alarms",
        stroke: getColorBySeriesIndex(0, "alarms", false),
        fill: getColorBySeriesIndex(0, "alarms", true),
        paths: (uPlot as any).paths.bars({    //// <= PROBABLY THIS PART THAT DOES NOT RENDER BARS (REMOVING IT DOES NOT CHANGE ANYTHING)
            size: [1],
        }),
        points: {
            show: false,
        },
    },
    {
        stroke: getColorBySeriesIndex(0, "alarms", false),
        fill: getColorBySeriesIndex(0, "alarms", true),
        paths: () => null,
        points: {
            show: false,
        },
    },
],

Isolated reproducible code

Work in progress

Since it is minor patch difference I don't think there are changes involved in uPlot.paths.bar() function, I am working on recreating example in JSFiddle but for now this should be sufficient. No errors are shown in console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions