This is a D3 based pie/donut chart with values and labels with polylines. It's based on dbuezas example Pie Chart Labels with missing data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main(void){ | |
for(int i=-13;i<=13;i++){ | |
int iresult=i/12; | |
float fresult=((float)i)/12.0f; | |
printf("%d\t%d\t%d\t%f\n",i,iresult,((int)fresult),fresult); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;End GCode | |
M104 S0 ; extruder heater off | |
M140 S0 ; heated bed heater off (if you have it) | |
G91 ; relative positioning | |
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure | |
G1 Z+0.5 E-5 X-20 Y-20 F9000 ; move Z up a bit and retract filament even more | |
G28 X0 Y0 ; move X/Y to min endstops, so the head is out of the way | |
M84 ; steppers off |