$('#' + idGrid).kendoGrid({ dataSource: dataSource, height: 400, toolbar: [{name: "create", text:"Create County"}], columns: [ { field:"_id", title: "ID", width: "50px" }, { field: "_status", values: status, title:"Status", width: "100px", editor: status_dropdown }, { field: "_country_id", title: "Country", values: countries, width: "50px", editor: country_dropdown }, { field: "_county_id", title: "County", values: counties, width: "50px", editor: county_dropdown }, { field: "code", title: "Code", width: "150px" }, { field: "name", title: "Name", width: "150px"}, { field: "localname", title: "Localname", width: "150px"}, { command: ["edit", "destroy"], title: " ", width: "200px" }], editable: "popup", sortable: { mode: "multiple", allowUnsort: true }, filterable: true, resizable: true, groupable: true, pageable: { pageSize: 30, refresh: true }});var status = [{ "value": 0, "text": "Disabled" }, { "value": 1, "text": "Enabled"}];var countiesData; var counties = new Array(); var countiesDataSource = new kendo.data.DataSource({ transport: { read: { url: "../order_new/county.php" } }, schema: { data: "data" }, change: function(e) { countiesData = this.data(); console.log(countiesData); var counties = new Array(); for (var i = 0; i < countiesData.length; i++) { var dataItem = countiesData[i]; counties.push({ "value": parseInt(dataItem._id), "text": dataItem.name }); } //here goes the previous code of grid creation}@model Model.Test @(Html.Kendo().PanelBar() .Name("panelbar") .ExpandMode(PanelBarExpandMode.Single) .HtmlAttributes(new { style = "width:300px" }) .Items(panelbar => { panelbar.Add().Text("My Teammates") .Expanded(true) .Content(@<div style="padding: 10px;"> <div class="teamMate"> <h2>Andrew Fuller</h2> <p>Team Lead</p> </div> <div class="teamMate"> <h2>Nancy Leverling</h2> <p>Sales Associate</p> </div> <div class="teamMate"> <h2>Robert King</h2> <p>Business System Analyst</p> </div> </div>); panelbar.Add().Text("Projects") .Items(projects => { projects.Add().Text("New Business Plan"); projects.Add().Text("Sales Forecasts") .Items(forecasts => { forecasts.Add().Text("Q1 Forecast"); forecasts.Add().Text("Q2 Forecast"); forecasts.Add().Text("Q3 Forecast"); forecasts.Add().Text("Q4 Forecast"); }); projects.Add().Text("Sales Reports"); }); panelbar.Add().Text("Programs") .Items(programs => { programs.Add().Text("Monday"); programs.Add().Text("Tuesday"); programs.Add().Text("Wednesday"); programs.Add().Text("Thursday"); programs.Add().Text("Friday"); }); panelbar.Add().Text("Communication").Enabled(false); }) )update: { // filter is a row in the grid url: function (filter) { alert(CommaDelimitedString); return '/path/UpdateData?ID=' + filter.ID + '&FilterName=' + filter.FilterName + &,AlertSource=' + SelectedAlertSources.replace(',', '|' ) + '&Param4=' + Param4Arg + '&Param5=' + Param5Arg }, // other parameters are omitted for brevity type: "POST"Lets pretend this is the data:
MusicGenre AgeGroup TimesPlay
Rock 10-15 100
Rock 16-20 200
Classical 10-15 5
Classical 16-20 4
If I do not group the data and I plot it
1. Then Rock 16-20 is the biggest bubble (biggest)
2. Followed by Rock 10-15 (2nd biggest)
3. Classical 10-15 (tiny)
4. Classical 16-20 (tiny)
But I get the same color for each bubble
If I group by Genre
I want to have the same color for Rock and a different one for classical and that happens, but then the bubble size
is determined by items in the same group, not compared with the rest
So Classical 10-15 and 16-20 now are big
Classical 10-15 = 5 out of 9 instead of 5 out of 309
Classical 16-20 = 4 out of 9 instead of 4 out of 309
Both are rendered big, because the grouping is taking in consideration only items inside the group and not comparing with other groups
I want to group to have different colors, but then the purpose of the bubble chart gets defeated, because having similar sizes doesn't make an useful visualization.
Is this a bug or it is intended to work this way?
dataSource: { transport: { read: { url: "@Url.Content("~/Music/GetData")", dataType: "json", data: { // This are the parameters genre: function() { return "All"; } } } }, group: { field: "Genre" } }, Any help? Is there a way to have groups but the bubble sizes are based on all the items, not only on the ones inside the group?
Thanks