In other words, I'm trying to have the size of the node be in relation to the size of the nodes in the same level, rather than a sum of children or leaves.
Any ideas? On Monday, July 18, 2016 at 10:27:08 AM UTC-7, Stephan00 wrote: > > Hello asgallant, > > I have been using bits and pieces of your code from different forum > discussions. > I am trying to create a visualization for our company to gauge progress. > > Im using 2 parent nodes > Top level=Category > Low level=Project > Leafs=Individual tasks > > I'm trying to figure out to use fixed values in the chart for column 2, so > the size(priority in my instance) of the project stays consistent, > regardless of how many individual tasks get added to that project. > > This is what I have so far: > https://jsfiddle.net/stephan00/4ws6uebw/201/ > > On Friday, September 20, 2013 at 9:54:38 PM UTC-7, asgallant wrote: >> >> The TreeMaps use the values of the leaf nodes to calculate size and color >> of the parent nodes, and there's no way to override that without faking the >> chart into believing that all nodes are the bottom leaf nodes. >> >> I suppose it might be possible to backwards calculate the values you >> would need the child nodes to have in order to get the size/color of the >> parent nodes right, and present the TreeMap with a DataTable that reflects >> those values, but doing so might prove prohibitively difficult to implement. >> >> On Friday, September 20, 2013 10:22:14 PM UTC-4, alice moon wrote: >>> >>> Is there any other way to let the maxDepth work?I really want this >>> function.thanks! >>> 在 2013-9-20 下午10:32,"asgallant" <[email protected]>写道: >>> >>>> No, the "maxDepth" option is incompatible with this code. >>>> >>>> On Friday, September 20, 2013 2:32:21 AM UTC-4, alice moon wrote: >>>>> >>>>> Hi Asgallant, >>>>> If I use the example you provide, the "maxDepth" property lose its >>>>> function . can you help me resolve this? >>>>> >>>>> Thanks, >>>>> Anna >>>>> >>>>> On Wednesday, September 18, 2013 10:35:36 PM UTC+8, asgallant wrote: >>>>>> >>>>>> Doing that isn't supported in the API, but you can use the code >>>>>> example here: http://jsfiddle.net/asgallant/NpsUh/7/ as a starting >>>>>> point. This is designed to change the way the node values are >>>>>> calculated, >>>>>> but you can adapt it to use unique color values for each node instead of >>>>>> changing the way the nodes are calculated. >>>>>> >>>>>> On Wednesday, September 18, 2013 5:52:17 AM UTC-4, alice moon wrote: >>>>>>> >>>>>>> Hi all, >>>>>>> How can I set the color value for the Group Node, I don't want the >>>>>>> Group Node color value have any relationship with their Children Node >>>>>>> color >>>>>>> values. >>>>>>> >>>>>>> Thanks, >>>>>>> Alice >>>>>>> >>>>>>> On Friday, August 31, 2012 12:26:43 AM UTC+8, asgallant wrote: >>>>>>>> >>>>>>>> There is no setting that will do this for you. You should be able >>>>>>>> to fake it by using DataViews >>>>>>>> <https://developers.google.com/chart/interactive/docs/reference#DataView> >>>>>>>> >>>>>>>> and grouping data >>>>>>>> <https://developers.google.com/chart/interactive/docs/reference#google_visualization_data_group>, >>>>>>>> >>>>>>>> changing the criteria used to build them in "select" and "rollup" >>>>>>>> event >>>>>>>> handlers. >>>>>>>> >>>>>>>> On Thursday, August 30, 2012 10:15:18 AM UTC-4, TUwel wrote: >>>>>>>>> >>>>>>>>> Hi, i have a question in term of TreeMaps with GoogleChart. >>>>>>>>> Example: https://developers.google.com/chart/interactive/docs/ >>>>>>>>> gallery/treemap >>>>>>>>> >>>>>>>>> I want to adjust the node vale, that he takes the sum not >>>>>>>>> the average of the childs . >>>>>>>>> >>>>>>>>> For Example: >>>>>>>>> Min Scale = -52 >>>>>>>>> Max Scale = 63 >>>>>>>>> Europe: -11,-2,-13,4,-5 = -27 >>>>>>>>> but he takes the value -27/5 = -5,4 >>>>>>>>> >>>>>>>>> I want that he takes -27 not the average, can someone help me? >>>>>>>>> >>>>>>>>> best regards >>>>>>>>> >>>>>>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Google Visualization API" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/google-visualization-api/QDlskEluq-E/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at >>>> http://groups.google.com/group/google-visualization-api. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/5c63356e-e57c-4861-9504-afd97e521d7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
