How to show two Pie Charts on the same Mendix page? - charts

I'm working on a Mendix app, and I need to display two or more Pie Charts on the page. The problem is, that in Mendix I can pass only one entity object to the page.
So if I want to show multiple Pie Charts, I have to create a "Wrapper" entity, associated with the Pie Chart entities, pass the Wrapper to the page, and access Pie Chart entities by association.
Sounds simple and it works perfectly with Data Grids! But the Pie Chart widgets remain empty, and I can't understand why.
What I have:
I have two entities for the two Pie Charts and a Wrapper entity associated with them. I pass this entity to the page in order to access associated entities by association.
I created some pages using which I can create new objects for the Pie Chart entities and save them in the database.
On the page where I want to display the Pie Charts, I added 2 Data View widgets and passed the Wrapper object to them using a microflow. Inside of each Data View, I added a second Data View and linked it with the corresponding Pie Chart entity by association. Inside of the second Data View widgets, I added the Pie Chart widgets.
The microflow:
One Pie Chart Widget settings (the second one is the same just linked to another Pie Chart entity):
I also added Data Grid widgets for testing purposes. As you can see, Data Grid can access the data I entered, but the Pie Chart widgets remain empty. 
Why is it happening and how can I fix it?

You are retrieving data from database, but from what I see in the microflow, you are creating the entity but not committing it into the database.
Consider also using a microflow instead of retrieving from database, if you want.
Passing the external object to the microflow and let it go out as a tunnel is enough to show your data inside the pie chart :)

Related

Set visual interaction within charts in Qlik Sense

I have two drill down bar chart in a container, within one drill down chart I need to select a bar and a pivot table below it needs to be get filtered according to that selection and all other chart should remain unfiltered just like the way we set interaction in power bi. I found a way but it is not working I have written the steps below -
Master items - Alternate states - Create new
Create an alternate states and then drag and drop to the charts which needs to be updated, I have also applied a formula in the measure, but non of them are working, like -
= Sum({[alternate_name]}Amount)
Please guide me over this.
This is a tough one because Master Items can't use alternate states (or at least Master visualizations can't) outside of referencing them in set analysis, as you tried (See the Limitations section of this Qlik Help page). In your example =Sum({[alternate_name]} Amount), you probably found that the selecting the bars was still affecting everything else but selecting in the pivot table was filtering the bar chart.
What you'll need to do here is to create that second bar chart within the container itself, rather than creating a Master visualization. When you're adding a chart to a container, you have the option of either using a Master Visualization or just creating a chart within the container itself (see this screenshot here). When you create a chart within a container, you have the ability to apply an Alternate State.
Here's a GIF of me using this setup.

Multiple Display In One-Page Tableau Dashboard

I am a new Tableau user. I have a concept to create one-page dashboard as summary page which contains two main windows. First window is fixed, displaying general information by pie chart. Second window (below) is dynamic, displaying detailed information of clicked pie chart. Every pie chart has different format/ layout of detailed information. Could I visualize the concept using Tableau. Please enlighten me
Yes you can. This is Tableau's bread and butter. Click an item in the dashboard and everything else can be filtered to that item. Look at Dashboard Actions to accomplish this.

Data visualization using Drupal-8 Views, Flipped Table and Charts API?

I have created a simple form to collect 15 inputs. I installed Flipped Table to flip the table from row to column format and created a new view to display the flipped table using rendered entity.
Then I added a chart attachment to the Master Flipped Table page. The main label is Submission ID and the data fields are the 15 categories. The pie chart is not showing at all. I seem to be stuck in bridging the data from the fields to the pie chart. Any direction will be most helpful.
If you're using the Charts module, in this case I would recommend adding a regular attachment, and then setting the display settings to Chart (Chart attachment is really intended as a second series on an existing chart). Also, please be sure to inspect element and look at the console for any JS errors...it's possible your charting library was not installed properly, and that would give you a good indication.

UI5 Generic Tile with filter functionality

I have Generic Tiles in my UI5 App. My requirement is to implement the functionality of Icon Tab Bar - Filter (https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.IconTabBar/preview) for these tiles. I have separate tile for each status and on clicking it should display the list in the table depending on the clicked status eg: 'completed tickets'.
The table and the tiles are in different views. If this is possible please provide suggestions as to how this can be accomplished.
Thanks,
Srinivasan
You could follow the example of the IconTabBar almost literally, and just swap the icons for tiles.
When you press an icon in the IconTabBar in the example, the logic connected to that icon will add a filter to the binding of the table. You should do the same: the logic connected to your tiles, should also change the filter of the table binding. Every tile could result in a different filter to the binding. With that, you would see the table filtered based on the tiles you clicked.
With your table being in a different view than the tiles, you may want to use the router to communicate between the two views. You could e.g. have tile one to navigate to /YourApp/#/Stuff/FilterBySomething and tile two to navigate to /YourApp/#/Stuff/FilterBySomethingElse. In the view containing your table, you should then pick up the filter info and add the filter to the table binding accordingly. More info on how this works can be found in Step 31 of the SAPUI5 walkthough.

is it possible to display view name on a chart?

We have a dashboard with some charts, and each chart has a corresponding view for filtering the data. Choosing different views filters the chart source data accordingly.
Is it possible to display the view name somewhere on the chart? Currently, once the chart is printed out there's no way to tell how the data was filtered.