2016-07-28 08:47:29 +02:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require( "wibox" ) --DOC_HIDE
|
|
|
|
local beautiful = require( "beautiful" ) --DOC_HIDE
|
|
|
|
|
|
|
|
parent:add( --DOC_HIDE
|
|
|
|
|
2016-12-27 21:39:08 +01:00
|
|
|
wibox.widget {
|
|
|
|
data_list = {
|
|
|
|
{ 'L1', 100 },
|
|
|
|
{ 'L2', 200 },
|
|
|
|
{ 'L3', 300 },
|
|
|
|
},
|
|
|
|
border_width = 1,
|
|
|
|
forced_height = 50, --DOC_HIDE
|
|
|
|
forced_width = 100, --DOC_HIDE
|
|
|
|
colors = {
|
|
|
|
beautiful.bg_normal,
|
|
|
|
beautiful.bg_highlight,
|
|
|
|
beautiful.border_color,
|
|
|
|
},
|
|
|
|
widget = wibox.widget.piechart
|
|
|
|
}
|
2016-07-28 08:47:29 +02:00
|
|
|
|
2016-12-27 21:39:08 +01:00
|
|
|
) --DOC_HIDE
|