charts.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <messages>
  3. <message id="error-missing-data">
  4. <div>The data file "{1}" could not be found. Check your deployment.</div>
  5. </message>
  6. <message id="introduction">
  7. <h2><span>Introduction</span></h2>
  8. <p class="p">
  9. This example demonstrates some of the capabilities of
  10. the <a href="http://www.webtoolkit.eu/wt/doc/reference/html/namespaceWt_1_1Chart.html"
  11. target="_new">Wt charting widgets</a>. These widgets are implemented
  12. using
  13. the <a href="http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WPaintedWidget.html"
  14. target="_new">Wt painting API</a>, which provides cross-browser
  15. native painting, using VML, SVG, or the Html 5 canvas tag.
  16. </p>
  17. <p class="p">
  18. The two main chart widgets
  19. are <a href="http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Chart_1_1WCartesianChart.html"
  20. target="_new">WCartesianChart</a>, which provides category charts
  21. and scatter plots,
  22. and <a href="http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Chart_1_1WPieChart.html" target="_new">WPieChart</a>
  23. which provides pie charts. These widgets are based on the MVC
  24. mechanism, and retrieve their data from
  25. a <a href="http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WAbstractItemModel.html" target="_new">WAbstractItemModel</a>.
  26. </p>
  27. <p class="p">
  28. Many aspects of the charts may be customized. By default, style
  29. information for rendering data series are taken from a
  30. <a href="http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Chart_1_1WChartPalette.html" target="_new">WChartPalette</a>. It
  31. is straight forward to specialize this class to provide different
  32. styles from the standard styles provided by <a href="http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Chart_1_1WStandardPalette.html" target="_new">WStandardPalette</a>.
  33. </p>
  34. <p class="p">
  35. Btw, would you expect this example to work when Ajax/JavaScript are
  36. not available or disabled?
  37. </p>
  38. </message>
  39. <message id="category chart">
  40. <h2><span>Category Chart</span></h2>
  41. <p class="p">
  42. A category chart uses categories on the X axis, and displays one or
  43. more data series on the Y axes. The values corresponding to each
  44. category are plotted consecutively (this is the main difference with
  45. a ScatterPlot). Each data series corresponds to a column from the
  46. model.
  47. </p>
  48. <p class="p">
  49. A cartesian chart provides automatic configuration of the axes, and
  50. support for a second Y axis. In addition, you may use a simple
  51. built-in legend, or extend the class to provide a specialized
  52. legend. <!-- In the example below, we use a manual Y axis configuration,
  53. with a break as would be commonly used when your data has a few
  54. outliers.-->
  55. </p>
  56. <p class="p">
  57. The table view allows editing of the model, which is automatically
  58. reflected in the chart.
  59. </p>
  60. </message>
  61. <message id="scatter plot">
  62. <h2><span>Scatter Plot (time series)</span></h2>
  63. <p class="p">
  64. A scatter plot is very much like a category chart, but uses
  65. numerical data on the X axis. By default, these numerical data are
  66. mapped linearly on the X axis, but may also be log transformed (as
  67. can be configured for the Y axes). In addition, there is special
  68. support for displaying date series, by means of smart heuristics for
  69. chosing the labels on the X axis.
  70. </p>
  71. <p class="p">
  72. Below is an extract from historical financial market data.
  73. </p>
  74. </message>
  75. <message id="scatter plot 2">
  76. <h2><span>Scatter Plot (sine function)</span></h2>
  77. <p class="p">
  78. Below we plot a single sine curves. We use 'curve' data series,
  79. which creates a smooth spline curve that interpolates the data
  80. points. As is typical when showing mathematical functions, we let
  81. the axes cross each other at the origin (0, 0).
  82. </p>
  83. </message>
  84. <message id="pie chart">
  85. <h2><span>Pie chart</span></h2>
  86. <p class="p">
  87. The pie chart is provided by the WPieChart widget. A pie chart can
  88. only display data from one data series. The class supports both
  89. plain 2D pies, as well as a 3D effect (as used below). As shown
  90. below for the first segment, these may be separated from the pie to
  91. show emphasis.
  92. </p>
  93. </message>
  94. </messages>