/*! \page grapher-nsplugin-example.html \ingroup nsplugin-examples \title Grapher Plugin This example graphs data from a simple text file. It demonstrates the use of the QNPInstance::writeReady() and QNPInstance::write() functions. To build the example, you must first build the Qt Netscape Plugin Extension library. Then type make in extensions/nsplugin/examples/grapher/ and copy the resulting grapher.so or npgrapher.dll to the Plugins directory of your WWW browser. The text file it accepts as input has a title line, then a sequence of lines with a number, then a string. The plugin displays a pie chart of the numbers, each segment labelled by the associated string. The user can select a bar chart view of the same data by selecting from the menu that appears when they point at the plugin. The HTML tag used to embed the graph is:
  <EMBED
    SRC=graph.g1n
    ALIGN=LEFT
    WIDTH=49% HEIGHT=300
    graphstyle=pie fontfamily=times
    fontsize=18>
Note that some HTML arguments (which we have capitalized here) are interpreted by the browser, while others are used by the plugin.
With the simplicity and cross-platform nature of Qt-based plugins, pages like Netcraft's Server Graphs can be provided much more efficiently for both the service provider and consumer. Data need not be converted to an image at the server.

Implementation: \include grapher/grapher.cpp */ /*! \plainpage graph.g1n num label 10 A 24 B 12 C 7 D 34 E 15 F 19 G */