{"id":24908,"date":"2017-09-17T18:57:48","date_gmt":"2017-09-17T16:57:48","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=24908"},"modified":"2017-09-17T19:37:54","modified_gmt":"2017-09-17T17:37:54","slug":"grafico-esempio-di-istrogramma-a-barre-sovrapposte","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/grafico-esempio-di-istrogramma-a-barre-sovrapposte\/","title":{"rendered":"Grafico: esempio di istrogramma a barre sovrapposte"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente snippet crea un grafico a barre sovrapposte definendo i \"Settings\" e assegnandoli all'omonima propriet\u00e0 dell'oggetto \"Grafico\".\r\n' Per informazioni sul significato dei singoli parametri di configurazione vedere qui: https:\/\/www.jqwidgets.com\/jquery-widgets-documentation\/documentation\/jqxchart\/jquery-chart-api.htm\r\n\r\nDim d As New DBArray()\r\nd.Add(New DBArray(\"Day\", \"Running\", \"Swimming\", \"Cycling\"))\r\nd.Add(New DBArray(\"Monday\", 30, 0, 25))\r\nd.Add(New DBArray(\"Tuesday\", 25, 25, 0))\r\nd.Add(New DBArray(\"Wednesday\", 30, 0, 25))\r\nd.Add(New DBArray(\"Thursday\", 35, 25, 45))\r\nd.Add(New DBArray(\"Friday\", 0, 20, 25))\r\nd.Add(New DBArray(\"Saturday\", 30, 0, 30))\r\nd.Add(New DBArray(\"Sunday\", 60, 45, 0))\r\n\r\nform.findcontrol(\"Chart1\").SetSeries(d)\r\n\r\nDim s As String\r\n\r\ns = \"title:  'Fitness &amp; exercise weekly scorecard',\" +\r\n\"description: 'Time spent in vigorous exercise by activity',\" +\r\n  \"enableAnimations: true,\" +\r\n \"showLegend: true,\" +\r\n\"padding: { left: 5, top: 5, right: 5, bottom: 5 },\" +\r\n\"titlePadding:  { left: 90, top: 0, right: 0, bottom: 10 },\" +\r\n\"xAxis:\" +\r\n\t\"{\" +\r\n\t\t\"dataField: 'Day',\" +\r\n\t\t\"unitInterval: 1,\" +\r\n\t\t\"axisSize: 'auto',\"+\r\n\t\t\"tickMarks: {\" +\r\n\t\t\t\"visible: true,\" +\r\n\t\t\t\"interval:  1,\" +\r\n\t\t\t\"color:  '#BCBCBC'\" +\r\n\t\t\"},\" +\r\n\t\t\"gridLines: {\" +\r\n\t\t\t\"visible: true,\" +\r\n\t\t\t\"interval: 1,\" +\r\n\t\t\t\"color: '#BCBCBC'\" +\r\n\t\t\"}\" +\r\n\t\"},\" +\r\n\"valueAxis:\" +\r\n\"{\" +\r\n\t\"unitInterval: 10,\" +\r\n\t\"minValue:  0,\" +\r\n\t\"maxValue:  120,\" +\r\n\t\"title:  { text: 'Time in minutes' },\" +\r\n\t\"labels:  { horizontalAlignment: 'right' },\" +\r\n\t\"tickMarks :  { color: '#BCBCBC' }\" +\r\n\"},\" +\r\n\"colorScheme: 'scheme06',\" +\r\n\"seriesGroups:\" +\r\n\t\"[\" +\r\n\t\t\"{\" +\r\n\t\t\t\"type: 'stackedcolumn',\" +\r\n\t\t\t\"columnsGapPercent:  50,\" +\r\n\t\t\t\"seriesGapPercent: 0,\" +\r\n\t\t\t\"series: [\" +\r\n\t\t\t\t\t\"{ dataField: 'Running', displayText: 'Running' },\" +\r\n\t\t\t\t\t\"{ dataField: 'Swimming', displayText: 'Swimming' },\" +\r\n\t\t\t\t\t\"{ dataField: 'Cycling', displayText: 'Cycling' }\" +\r\n\t\t\t\t\"]\" +\r\n\t\t\"}\" +\r\n\t\"]\"\r\n\t\r\nform.findcontrol(\"Chart1\").Settings=s\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente snippet crea un grafico a barre sovrapposte definendo i &#8220;Settings&#8221; e assegnandoli all&#8217;omonima propriet\u00e0 dell&#8217;oggetto &#8220;Grafico&#8221;. &#8216; Per informazioni sul significato dei singoli parametri di configurazione vedere qui: https:\/\/www.jqwidgets.com\/jquery-widgets-documentation\/documentation\/jqxchart\/jquery-chart-api.htm Dim d As New DBArray() d.Add(New DBArray(&#8220;Day&#8221;, &#8220;Running&#8221;, &#8220;Swimming&#8221;, &#8220;Cycling&#8221;)) d.Add(New DBArray(&#8220;Monday&#8221;, 30, 0, 25)) d.Add(New DBArray(&#8220;Tuesday&#8221;, 25, 25, 0)) d.Add(New DBArray(&#8220;Wednesday&#8221;, 30,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[71],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24908"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=24908"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24908\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=24908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=24908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=24908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}