DojoD3DonutChart.js 638 B

123456789101112131415161718192021222324252627282930
  1. define([
  2. "dojo/_base/declare",
  3. "dojo/_base/lang",
  4. "./DojoD3PieChart"
  5. ], function (declare, lang,
  6. DojoD3PieChart) {
  7. return declare([DojoD3PieChart], {
  8. mapping: {
  9. donutChart: {
  10. display: "Donut Chart Data",
  11. fields: {
  12. label: "Label",
  13. value: "Value"
  14. }
  15. }
  16. },
  17. constructor: function () {
  18. },
  19. renderTo: function (_target) {
  20. _target = lang.mixin({
  21. innerRadiusPct: 75
  22. }, _target);
  23. this.inherited(arguments);
  24. }
  25. });
  26. });