Fluentui: Show a point in Line chart component when there is only one data

Created on 2 Mar 2020  路  5Comments  路  Source: microsoft/fluentui

Describe the feature that you would like added

We are internal users of this Package in MSFT. My alias is niwa.
We are hoping someone can add a new feature or fix this bug in Line Chart component.

In @uifabric/charting LineChart component, when we have only one data pass to the component, the component shown nothing on UX just an empty chart. We are expecting the component to show up a point indicated this data on the line chart.

What component or utility would this be added to

Pls see the attached picture.
WeChat Screenshot_20200302143714

Have you discussed this feature with our team, and if so, who

No.

Additional context/screenshots

charting Type

Most helpful comment

I will get this fixed.

All 5 comments

I will get this fixed.

hello @kenibote , could you please share us the data that you are passing to the chart, so that i could repro at my side and do the needful

@shivasai09 Sure. For example, <LineChart data={data} tickFormat={'%m%d'} tickValues={values}/>
Here, the data=[ { data:[{x:'2020-02-02', y:90}], legend:'Your Point', color: '#0078D4' } ]. Here the values: Date[] = ['2020-02-02'] .
Then the UX just shows an empty Line chart. what we expect is that there should at least has a point on the UX.
Thanks. :)

This is resolved. Please take the latest charting package

@Raghurk @shivasai09 @xugao Truly thanks~

Was this page helpful?
0 / 5 - 0 ratings