Display more than two measure value in bar Chart

Resolved
sudhasmsa asked on October 16, 2018

Hello Flexmonster,
 
Thank you guys for your prompt response. The following is more of concern than a question.
 
We are using flexmonster with angular. And planning to include integrated google charts with it. So, I was playing with it. I was trying to display more than two measure value in bar Chart and figured I can use prepareDataFunction and solved the problem. 
Here are my concerns. 

  • I need to know what is the data structure (contract) you guys are using for data.
  • What if the structure changes ? My prepareDataFunction will break right ?
  • I am sure you guys might have thought about it. Why not such utility code be part of flexmonster ?

Let me know. 
Thank you
Sudhamsa 

6 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster October 17, 2018

Hello, Sudhamsa,
Thank you for writing to us.
Displaying of more than two measure values in bar chart can be achieved without prepareDataFunction. Please have a look at the following JSFiddle sample: https://jsfiddle.net/flexmonster/gd5pLvmm/.
However, if you need to preprocess the data in a different way, prepareDataFunction is the right option. So here are our comments regarding your concerns:

  • The data structure we are using is the same as for rawData from our docs. This example will help you to understand how it works.
  • If the structure were to change, prepareDataFunction would need to be updated. That's why we avoid changing the data structure of rawData.
  • prepareDataFunction is not a part of Flexmonster because its main aim is to provide the integrators with the ability to prepare the data for any kind of charts they need. We support 6 Google Charts types and provide the ability to implement any other type as well.

Please let me know if you have any other questions.
Regards,
Tanya

Public
sudhasmsa October 17, 2018

Hello Tanya,
 
Thank you for the quick response. Apologies, I was asking about wrong scenario.  I wanted to know how I can achieve drilldown? 
 
Example: https://jsfiddle.net/gd5pLvmm/9/
In the above scenario right, I wanted to see multiple bars for each color in category. Is that something doable without prepareDataFunction ?
 
Thank you
Sudhamsa

Public
Tanya Gryshko Tanya Gryshko Flexmonster October 17, 2018

Sudhamsa,
Thanks for the quick update.
prepareDataFunction should be used to achieve drill down. For example, here is a demo showing the deepest drill down level on Google Column Chart: https://jsfiddle.net/flexmonster/aqe5qne8/.
As about multiple bars for each color in category, this is doable only with the help of prepareDataFunction.
I hope the information above is helpful.
Also, could you please let me know if your company is an existing customer of Flexmonster or you're just testing it? We need this information for our records.
Regards,
Tanya

Public
sudhasmsa October 17, 2018

Thank you for the response. We are existing customer of Flexmonster.
 
Thank you
Sudhamsa

Public
Tanya Gryshko Tanya Gryshko Flexmonster October 18, 2018

Hi Sudhamsa!
Could you please tell me the name of your company? We need that to properly manage your tickets in our system and provide more adequate and consistent support.
Thank you

Public
sudhasmsa October 23, 2018

Hello Tanya,
 
It's 4g Clinical. 

Please login or Register to Submit Answer