amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
353 stars 95 forks source link

Column series getting clustered after adding more data #1668

Closed Ashishvkale closed 3 months ago

Ashishvkale commented 3 months ago

Here I'm trying to show more data on horizontal scroll but it's getting clustered, even after making clustered false and giving height. here's a dummy video:

It gets messed up on horizontal scroll. I want to keep it clean on scroll as previous.

Code for same:


              columnseries = this.chart.series.push(
                am5xy.ColumnSeries.new(this.root, {
                    xAxis: this.dateAxis,
                    yAxis: this.categoryAxis,
                    openValueXField: "start",
                    valueXField: "end",
                    categoryYField: "categorySeries",
                    paddingLeft: 0,
                    clustered: false,
                    sequencedInterpolation: true
                })
            )

            columnseries.data.processor = am5.DataProcessor.new(this.root, {
                dateFields: ["start", "end"]
            })

            columnseries.data.setAll(activities)

It gets messed up on horizontal scroll. I want to keep it clean on scroll as previous.

And if I make it manually then vertical scrollbar is not able to scroll all the way down, gets freezed...

martynasma commented 3 months ago

Isn't this the same as here?: https://github.com/amcharts/amcharts5/issues/1643#issuecomment-2263316275

Ashishvkale commented 3 months ago

@martynasma No that was issue regarding autozoom of date axis where it was automatically doing zoom out, But Here you can see I want to show more data and columns are getting messed up Not maintaining clean interface

is there any property to configure making them not to mess up like this

martynasma commented 3 months ago

Can you post your chart as a CodePen?

Ashishvkale commented 3 months ago

Sure

Ashishvkale commented 3 months ago

@martynasma Here is the codepen: https://codepen.io/ashish-kale-ak/pen/RwzKmrw?editors=0010

I'm not able to fully reproduce the issue But does it helps with if we consider as its only showing data for a few columns and then on horizontal scroll that series is get updates with more data And get clustered as shown in video

Ashishvkale commented 3 months ago

@martynasma Is the information sufficient to detect the issue ??

martynasma commented 3 months ago

Not really. The CodePen you shared does not resemble the behavior in your demo.

I'm sorry, but please understand we cannot dedicate a lot of time for guesswork. In order for us to be able to swiftly provide solutions, we need a repro case as refined and distilled as possible.

Please make sure the issue is reproducible in your CodePen, and there's no redundant code to sift through.

I hope that sounds reasonable.

Ashishvkale commented 3 months ago

Got It. I am closing this question as of now. I will open another one with minimal exact reproducible code pen. Thanks for understanding