{
    "mode": "perldoc",
    "parameter": "Chart::Manual::Workflows",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Chart%3A%3AManual%3A%3AWorkflows/json",
    "generated": "2026-10-08T03:21:37Z",
    "sections": {
        "NAME": {
            "content": "Chart::Manual::Workflows - different ways to create charts\n",
            "subsections": []
        },
        "OVERVIEW": {
            "content": "Four of the five major steps in creating a chart image are fixed in their order. First you have\nto load the module, secondly create create the object. After that you may change some\nproperties. And always as a last step you create the image, no matter if the output goes to\nSTDOUT or into a file.\n\nThe only flexibility lies in how you prefer to provide the data. And here you have three\noptions. Most commonly you add one data set at the time, which could be also understood as a row\nof the complete data table. Second option is to build the table column by column. Thirdly you\ncan drop the complete table at once, either by reference to a data structure or a file\ncontaining the data. The last option is closed if you already given the object data. It is not\nadvisable to reuse a chart object for further image creation outside of modern art projects.\n",
            "subsections": []
        },
        "STEPS": {
            "content": "Most steps are already explained elsewhere and the OVERVIEW just links there. The missing bits\nare layed out here.\n\nuse Chart\nAs with any other Modul you have to:\n\nuse Chart::[Type];\n\nType being a placeholder for a name of a chart type, which are: Bars, Composite, Direction,\nErrorBars, HorizontalBars, Lines, LinesPoints, Mountain, Pareto, Pie, Points, Split,\nStackedBars. To know more about them read Chart::Manual::Types.\n\nAlternatively write to load all chart types at ones with\n\nuse Chart;\n\nBoth are not importing any symbols in your name space but load Carp and GD.\n\ndrop data\nAll the methods listed in the last section, that create the final image, take as an optional,\nsecond argument data. This data may be delivered either as a reference to an array of arrays:\n\nmy $data = [ [ 1, 4, 3 ... ], # data set 0\n[ 5, 8, 2 ... ], # data set 1\n...\n];\n$graph->png( 'file.png', $data );\n\nor in form of a file. Then the argument has to be a file name or a file handle (old school as in\n\"FILE\" or modern as in $FH). Alternatively use the method adddatafile.\n\ndata files\nAre arbitrary named text files containing one or several rows of numbers, which have to be\nseparated by spaces or tabs (\\t) (mixing allowed). Perl style comments or empty lines will be\nignored, but rows containing different amount of numbers will cause problems.\n\ncreate image\nCurrently we support only images in the PNG and JPEG format. The methods to create them are\nnamed straight forwardly: ->png and ->jpeg. Both take the same arguments and produce image\nfiles. For shell scripting or web programming you need the image binary, which you get with:\n->cgipng or ->cgijpeg. Some users might even want the GD object for further processing by your\nperl programm. In that case please use: ->scalarpng or ->scalarjpeg.\n\nAfter having created a chart for web purposes, you also might want to utilize imagemapdump.\n\nCOPYRIGHT & LICENSE\nCopyright 2022 Herbert Breunung.\n\nThis program is free software; you can redistribute it and/or modify it under same terms as Perl\nitself.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Herbert Breunung, <lichtkind@cpan.org>\n",
            "subsections": []
        }
    },
    "summary": "Chart::Manual::Workflows - different ways to create charts",
    "flags": [],
    "examples": [],
    "see_also": []
}