@@ -307,108 +307,6 @@ export const REPORT_TYPES = {
307307 }
308308 }
309309 } ,
310- "pie" : {
311- label : "Pie Chart" ,
312- component : NeoPieChart ,
313- helperText : < div > A pie chart expects two fields: a < code > category</ code > and a < code > value</ code > .</ div > ,
314- selection : {
315- "index" : {
316- label : "Category" ,
317- type : SELECTION_TYPES . TEXT
318- } ,
319- "value" : {
320- label : "Value" ,
321- type : SELECTION_TYPES . NUMBER ,
322- key : true
323- } ,
324- "key" : {
325- label : "Group" ,
326- type : SELECTION_TYPES . TEXT ,
327- optional : true
328- }
329- } ,
330- useRecordMapper : true ,
331- maxRecords : 100 ,
332- settings : {
333- "sortByValue" : {
334- label : "Auto-sort slices by value" ,
335- type : SELECTION_TYPES . LIST ,
336- values : [ true , false ] ,
337- default : false
338- } ,
339- "enableArcLabels" : {
340- label : "Show Values in slices" ,
341- type : SELECTION_TYPES . LIST ,
342- values : [ true , false ] ,
343- default : true
344- } ,
345- "enableArcLinkLabels" : {
346- label : "Show categories next to slices" ,
347- type : SELECTION_TYPES . LIST ,
348- values : [ true , false ] ,
349- default : true
350- } ,
351- "legend" : {
352- label : "Show legend under visualization" ,
353- type : SELECTION_TYPES . LIST ,
354- values : [ true , false ] ,
355- default : false
356- } ,
357- "interactive" : {
358- label : "Enable interactivity" ,
359- type : SELECTION_TYPES . LIST ,
360- values : [ true , false ] ,
361- default : true
362- } ,
363- "colors" : {
364- label : "Color Scheme" ,
365- type : SELECTION_TYPES . LIST ,
366- values : [ "nivo" , "category10" , "accent" , "dark2" , "paired" , "pastel1" , "pastel2" , "set1" , "set2" , "set3" ] ,
367- default : "set2"
368- } ,
369- "innerRadius" : {
370- label : "Pie Inner Radius (between 0 and 1)" ,
371- type : SELECTION_TYPES . NUMBER ,
372- default : 0
373- } ,
374- "padAngle" : {
375- label : "Slice padding angle (degrees)" ,
376- type : SELECTION_TYPES . NUMBER ,
377- default : 0
378- } ,
379- "borderWidth" : {
380- label : "Slice border width (px)" ,
381- type : SELECTION_TYPES . NUMBER ,
382- default : 0
383- } ,
384- "marginLeft" : {
385- label : "Margin Left (px)" ,
386- type : SELECTION_TYPES . NUMBER ,
387- default : 24
388- } ,
389- "marginRight" : {
390- label : "Margin Right (px)" ,
391- type : SELECTION_TYPES . NUMBER ,
392- default : 24
393- } ,
394- "marginTop" : {
395- label : "Margin Top (px)" ,
396- type : SELECTION_TYPES . NUMBER ,
397- default : 24
398- } ,
399- "marginBottom" : {
400- label : "Margin Bottom (px)" ,
401- type : SELECTION_TYPES . NUMBER ,
402- default : 40
403- } ,
404- "autorun" : {
405- label : "Auto-run query" ,
406- type : SELECTION_TYPES . LIST ,
407- values : [ true , false ] ,
408- default : true
409- }
410- }
411- } ,
412310 "pie" : {
413311 label : "Pie Chart" ,
414312 component : NeoPieChart ,
@@ -502,6 +400,12 @@ export const REPORT_TYPES = {
502400 label : "Margin Bottom (px)" ,
503401 type : SELECTION_TYPES . NUMBER ,
504402 default : 40
403+ } ,
404+ "autorun" : {
405+ label : "Auto-run query" ,
406+ type : SELECTION_TYPES . LIST ,
407+ values : [ true , false ] ,
408+ default : true
505409 }
506410 }
507411 } ,
0 commit comments