Module:Chart data/doc examples: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

17 October 2024

  • curprev 00:0000:00, 17 October 2024Alex talk contribs 9,986 bytes +9,986 Created page with "-- <nowiki> local p = {} local chart = require( 'Module:Chart data' ) function p.line() local plot = chart.newChart{ type = 'line' } :setDimensions( '10vw', '10vh', 300, 300, true ) :setTitle( 'Line chart' ) :setXLabel( 'x axis label' ) :setYLabel( 'y axis label' ) plot.options.fill = true for i = 1, 2 do local set = plot:newDataSet() set.data = { i^2, (i+1)^2, (i+2)^2, (i+3^2), (i+4)^2 } set.label = '..."