is there a way to create a pie chart from within squarestudio - I tried using arc but i can not seam to beable to adjust to play nice - basically all that missing is a removal of the “knob characteristics” and basically have a flat line instead of rounded … or will I have to manually adjust the characteristics outside of squarestudio
okay i found the option to disable the roundness and was able to create piechart
Solution :
since there currently no meter wigdet in squareline. here a basic work around to create pie charts using arc widget with in squareline
using the default widget size if of different size.some will have to be adjusted. (ie 73)
1st:
- bg start angle = 0
- bg end angle = 360
- rotation= 270
Style settings (main) → arc - set colour ( will be your main pie chart colour)
- set width = 73
- check first check mark arc rounded
Style settings (indicator) → arc - set colour ( secondary pie chart colour)
- set width = 73
- check the first check mark of arc rounded
style(knob) - 255-255-255-255 (white)
- blend → multiply
*copy widget and modify the copy *
style(main) - Blend → multiply
- arc → colour change 255-255-255-255
Style(indicator) - arc → change colour (this will be your third pie chart colour)
now copy this arc widget for each subsequent piece of the pie and change its style(indicator) arc colour
okay good luck have fun
LVGL has the meter widget too, but it’s no available in SquareLine yet.
However you can added from code after ui_init()
.
See this example:
https://docs.lvgl.io/master/widgets/meter.html#pie-chart
thank you for the reply – I was think of doing that. but using arc widget was not too difficult and it WYSIWYG. doing out side of squareline would be a bit of trial and error to get the look I wanted