quote:eard of these charts and googled double pie chart with nothing resembling the picture you posted. You could probably write your own D3 chart that you can use as an extension. I doubt sunburst chart is going to meet your requirement.
quote:Originally posted by Mike Williams:
Have to agree with Babak, couldn't really find anything close to what you referenced. In concept maybe something like this could work https://www.amcharts.com/demos...gauge-with-two-axes/
-HTMLFORM BEGIN <style> .label {fill: rgba(0,0,0,0) !important;} </style> -HTMLFORM END GRAPH FILE GGSALES SUM DOLLARS NOPRINT BUDDOLLARS NOPRINT COMPUTE PCENT/D7.2% = (C1 / C2 * 100) ; BY REGION WHERE REGION CONTAINS 'east' ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET VZERO OFF ON GRAPH SET LOOKGRAPH EXTENSION ON GRAPH SET EMBEDHEADING ON ON GRAPH SET AUTOFIT ON ON GRAPH SET STYLE * *GRAPH_SCRIPT setPieDepth(0); setPieTilt(0); setDepthRadius(0); setPlace(true); setCurveFitEquationDisplay(false); *END INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$ TYPE=DATA, COLUMN=N1, BUCKET= >label, $ TYPE=DATA, COLUMN=N4, BUCKET= >value, $ TYPE=HEADING, JUSTIFY=CENTER, $ *GRAPH_SCRIPT setReportParsingErrors(false); setSelectionEnableMove(false); *GRAPH_JS_FINAL "extensions": { "com.ibi.arc": { "arc": { "start": 0, "padding": 0.1, "extent": 0.9 }, "axis": { "base": {"color": "rgba(0,0,0,0)", "width": 0}, "ticks": {"color": "rgba(0,0,0,0)", "width": 0} }, "valueLabel": {"color": "rgba(0,0,0,0)"}, "labels": { "text": {"color": "rgba(0,0,0,0)"} } } }, "pieProperties": { "holeSize": "0%" }, "chartType": "com.ibi.arc", "agnosticSettings": { "chartTypeFullName": "com.ibi.sankey" } *END ENDSTYLE END
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
quote:Originally posted by vinodh:quote:Originally posted by Mike Williams:
Have to agree with Babak, couldn't really find anything close to what you referenced. In concept maybe something like this could work https://www.amcharts.com/demos...gauge-with-two-axes/
mark have u tried the charts from this website and does it worked ? i am trying to utilize the nested-donut-chart.
thanks mike for this website. i havent tried charts from here. below chart link looks similar to my requirement i guess. having nested donut chart.?
https://www.amcharts.com/demos/nested-donut-chart/
TABLE FILE CAR SUM DEALER_COST RETAIL_COST BY CAR ON TABLE HOLD FORMAT JSON END -HTMLFORM BEGIN NOEVAL <!-- Styles --> <style> body { background-color: #30303d; color: #fff; } #chartdiv { width: 100%; height: 500px; } </style> <!-- Resources --> <script src="https://www.amcharts.com/lib/4/core.js"></script> <script src="https://www.amcharts.com/lib/4/charts.js"></script> <script src="https://www.amcharts.com/lib/4/themes/dark.js"></script> <script src="https://www.amcharts.com/lib/4/themes/animated.js"></script> <!-- Chart code --> <script> //Hold file information var ibiData = !IBI.FIL.HOLD; ; am4core.ready(function() { // Themes begin am4core.useTheme(am4themes_dark); am4core.useTheme(am4themes_animated); // Themes end // Create chart instance var chart = am4core.create("chartdiv", am4charts.PieChart); // Let's cut a hole in our Pie chart the size of 40% the radius chart.innerRadius = am4core.percent(40); // Add data chart.data = ibiData.records; // Add and configure Series var pieSeries = chart.series.push(new am4charts.PieSeries()); pieSeries.dataFields.value = "DEALER_COST"; pieSeries.dataFields.category = "CAR"; pieSeries.slices.template.stroke = am4core.color("#fff"); pieSeries.slices.template.strokeWidth = 2; pieSeries.slices.template.strokeOpacity = 1; // Disabling labels and ticks on inner circle pieSeries.labels.template.disabled = true; pieSeries.ticks.template.disabled = true; // Disable sliding out of slices pieSeries.slices.template.states.getKey("hover").properties.shiftRadius = 0; pieSeries.slices.template.states.getKey("hover").properties.scale = 0.9; // Add second series var pieSeries2 = chart.series.push(new am4charts.PieSeries()); pieSeries2.dataFields.value = "RETAIL_COST"; pieSeries2.dataFields.category = "CAR"; pieSeries2.slices.template.stroke = am4core.color("#fff"); pieSeries2.slices.template.strokeWidth = 2; pieSeries2.slices.template.strokeOpacity = 1; pieSeries2.slices.template.states.getKey("hover").properties.shiftRadius = 0; pieSeries2.slices.template.states.getKey("hover").properties.scale = 1.1; }); // end am4core.ready() </script> <!-- HTML --> <div id="chartdiv"></div> -HTMLFORM END -EXIT
quote:Originally posted by vinodh:
thank you @hallway. you are awesome.
you make answers look simple.
someday i will make trip to Salt Lake city to thank you.