Filter data in chart (OData)

Stimulsoft Reports.JS discussion
Post Reply
l.kozien
Posts: 5
Joined: Mon Dec 04, 2017 10:54 am

Filter data in chart (OData)

Post by l.kozien »

Hi,

After spending 2 days searching for the answer I decided to create this post.
I need help with following problem:
I created table based on OData DataSource. Content of the table is filtred by 6 different values requested by users. Next I created chart to display the table.
The chart displays whole datasource. I want to filter the chart the same way I filter my table.

I tried creating new datasource based on datasource used in table with aggregation functions. I tried to use the same variables to filter this datasource, but nothing seems to work so far. Is there any possibility to solve this problem?

Thanks in advance for any answers.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Filter data in chart (OData)

Post by Alex K. »

Hello,

Please try to set the DataSource and Filter properties for the Chart component.

Thank you.
l.kozien
Posts: 5
Joined: Mon Dec 04, 2017 10:54 am

Re: Filter data in chart (OData)

Post by l.kozien »

Hello,

Filters in chart datasources support only filtering by value and expression, but the expression I used to filter datatable doesn't work (checking if my list variable contains argument of series).
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Filter data in chart (OData)

Post by Alex K. »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
l.kozien
Posts: 5
Joined: Mon Dec 04, 2017 10:54 am

Re: Filter data in chart (OData)

Post by l.kozien »

Hello,

Thank you for response, we resolved this problem by using complicated filter (comparing to boolean value of expression - ListVariable.Contains(fieldFromDatasource)).
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Filter data in chart (OData)

Post by HighAley »

Hello.

Great.
Let us know if you need our help.

Thank you.
Post Reply