Appboard/old/widgets/line chart: Difference between revisions

imported>Cmace
(created to remove appboard_builder)
 
imported>Cmace
(copied from internalwiki)
Line 1: Line 1:
== Adding a Line Chart Widget ==
A Line Chart Widget displays information as a series of data points connected by line segments.  It is similar to an [[Area_Chart_Widget|Area Chart]], but without the color and texture between the axes and the line.


Click "Add Widget" in the tool palette on the left.  If "Add Widget" is disabled, refer to the "Adding a Stack" section. For a general overview of adding a "Widget" refer to [[Widgets|Add/Edit/Remove a Widget]].


# Enter a name for the Widget
[[Image:LineChartSample.png|thumb|center|700px|Sample AppBoard Line Chart]]
# Select "Line" under the "Charts" tab.
# Select the Board you'd like the Column Chart Widget to appear on.
# Click "Add Widget".




== Configuring a Line Chart Widget ==
== How To Create a Line Chart Widget ==
For instructions on creating a Widget, see the general instructions in [[Widgets#Adding_Widgets|Adding Widgets]].  The <b>Line</b> Widget type is located under the <b>Charts</b> category on the Widget selection screen.


# Select a Data Collection that contains the information you'd like to use for this widget. The Data Collection should contain one or more numeric fields to use as Y values which will be plotted against the corresponding X value.
 
#* Click the "Data Collection" pulldown, then select from the list of available Data Collections.
== How To Configure a Line Chart Widget ==
#* If you do not see any Data Collections, refer to [[Data_Collections|Add/Edit/Remove a Data Collection]].
Follow the instructions above to create the basic "Line Chart" Widget, and then perform the following steps to configure a Line Chart Widget:
# Select the desired field for the X axis.
 
# Select the desired type of field.
 
#* LinearAxis: use for numeric X values that increase by a relatively uniform amount from value to value.
=== Select a Data Collection ===
#* LogAxis: use for numeric X values that increase exponentially.
Select a '''Data Collection''' that contains the information you would like to use for this Widget.  
#* CategoryAxis: use for X values that are list of strings like month names or employee names.
* Click the "Data Collection" pulldown, then select from the list of available Data Collections.
#* DateTimeAxis: use for X values that are a timeline.
* If you're using the sample CSV data, select "Sample.Data.ChartData".
#:* note: for a DateTimeAxis to work correctly the field in the underlying Data Source must be type "DATE".
* If there are no Data Collections available in the pulldown, then click here for instructions on how to bring in some [[Sample_Chart_Data|Sample Chart Data]], or refer to [[Data_Collections|Add/Edit/Remove a Data Collection]].
# Click "Add" for the Series.
 
# Select the Y axis field using the drop down list.
 
# Select the desired line graph type using the "From" drop down list.
=== Configure the X-Axis ===
#* segment: a line segment will be drawn from one point to the next.
 
#* curve: fit a spline to the points. The effect is like a line segments with smoothing.
Select the desired '''Field''' to use for the X-Axis of the Chart.
#* horizontal: a horizontal line is drawn from each point over to the X coordinate of the next point with a vertical skip between each data point, creating the look of "floating" lines.
* The "rows" of this column of data will make up the X-Axis.
#* reverseStep: a vertical line is drawn starting at each point up or down to the Y coordinate of the next point followed by a horizontal line drawn to the next point.
If you're using ''Sample.Data.ChartData'', then select "Month" to be the Field.
#* step: a horizontal line is draw starting at each point over to the X coordinate of the next point (in the same manner as "horizontal") followed by a vertical line up or down to the next point.
 
#* vertical: at each point, a vertical line is drawn starting at the Y coordinate of the previous point up or down to the current point. There is no line at the first point.
 
# Select the color for the line segments by clicking on the color selector and picking a color off of the popup.
=== Type ===
# Repeat for any additional series.
Select an option for <b>Type</b> from the drop-down box. This will be used to determine how the data is translated by AppBoard into the labels that are shown along the x-axis:
#* Series may be removed with the "Remove" button next to the "Add". Click anywhere on a row to select the row to "Remove".
* '''LinearAxis''': x-axis values are determined as a linear progression between the lowest and highest values.
# Check or uncheck "Show Legend" as desired to include a legend of the line color for each Series (by Y-Field name).
* '''LogAxis''': x-axis values are determined as a logarithmic progression between the lowest and highest values. Labels on the logarithmic axis are even powers of 10.
# Enable the X-Axis title and enter value as desired.
* '''CategoryAxis''': This is the default.  The "rows" observed in the selected column of data will make up the X-Axis.
# Enable the X-Axis labels and rotate them as desired.
* '''DateTimeAxis''': x-axis values are determined as time-based values such as hours, days, weeks, or years.
# Enable the Y-Axis title and enter value as desired.
If you're using ''Sample.Data.ChartData'', then select "CategoryAxis" to be the Type.
# Enable the Y-Axis labels and rotate them as desired.
 
# Complete "Options" and "Actions" steps as described in [[Widgets|Add/Edit/Remove a Widget]].
 
=== Configure a Series (Y-Axis) ===
* Click the "Add" button in the button toolbar of the Series DataGrid.
* Repeat to add additional series.
* Series may be removed with the "Remove" button next to the "Add" button.
 
 
=== Y-Field ===
* Values contained within the "Y-field" will determine the height for that series.
* If you're using ''Sample.Data.ChartData'', then select "Software" as the Y-field.
 
 
=== Form ===
Specifies the way in which the data series is shown in the chart. The following options are provided:
* '''segment''' - Draws lines as connected segments that are angled to connect at each data point in the series. This is the default.
* '''curve''' - Draws curves between data points.
* '''horizontal''' - Draws only the horizontal line from the x-coordinate of the first point to the x-coordinate of the second point at the y-coordinate of the first point. Repeats this action for each data point.
* '''reverseStep''' - Draws lines as horizontal and vertical segments. At the first data point, draws a vertical line, and then a horizontal line to the second point. Repeats this action for each data point.
* '''step''' - Draws lines as horizontal and vertical segments. At the first data point, draws a horizontal line, and then a vertical line to the second point. Repeats this action for each data point.
* '''vertical''' - Draws only the vertical line from the y-coordinate of the first point to the y-coordinate of the second point at the x-coordinate of the second point. Repeats this action for each data point.
 
[[Image:lineChart_Form.png|Sample Area Chart Forms]]
 
 
=== Color === 
* Color will work in conjunction with Fill Style to distinguish one series from another.
* You can select color by clicking on the color swatches in the color picker, or you can manually enter a hexadecimal color value.
 
 
=== Alpha ===
* Alpha sets the opacity of the series.
* Reducing the Alpha lets you see grid lines show through the columns.
[[Image:lineChart_Alpha.png|Sample Area Alpha]]
 
 
=== Weight ===
* Weight refers to how thick the line on the line chart will be.
* Larger numbers equate to the thicker lines.
[[Image:lineChart.png|Sample Area Chart]]
 
 
=== Additional Area Chart Options ===
*Show Legend
*: Toggles chart legend on/off.
* X-Axis title
*: Allows you to enter a custom title for the X-Axis, which can be toggled on/off.
* X-Axis labels
*: Allows you to rotate the X-Axis labels. You can also toggle the X-Axis labels on/off.
*Y-Axis title
*: Allows you to enter a custom title for the Y-Axis, which can be toggled on/off.
* Y-Axis labels
*: Allows you to rotate the Y-Axis labels. You can also toggle the Y-Axis labels on/off.
*Show Mouse-Over Data Tips 
*: This option enables data tips to appear when mousing over the vertices of a line chart.
*Use Custom Mouse-Over Data Tips
*: This option enables you to customize the data tips that appear when mousing over the vertices of a line chart.
 
 
 
=== Additional Configuration Steps ===
* Provide additional configuration, if needed, on the <b>Options</b> tab.  For details on the available Options, see [[Options|Options]].
 
 
* Enter the following information on the <b>Actions</b> tab:
** Click <b>Add Event Action</b> to configure one or more [[Actions|Actions]] to be invoked when a user clicks on the Line Chart Widget.  The action will apply to the current data record being displayed.
 
 
== Sample Data ==
 
Instructions for bringing sample chart data into AppBoard can be found here: [[Sample_Chart_Data|Sample Chart Data]]

Revision as of 17:43, 3 May 2012

A Line Chart Widget displays information as a series of data points connected by line segments. It is similar to an Area Chart, but without the color and texture between the axes and the line.


Sample AppBoard Line Chart


How To Create a Line Chart Widget

For instructions on creating a Widget, see the general instructions in Adding Widgets. The Line Widget type is located under the Charts category on the Widget selection screen.


How To Configure a Line Chart Widget

Follow the instructions above to create the basic "Line Chart" Widget, and then perform the following steps to configure a Line Chart Widget:


Select a Data Collection

Select a Data Collection that contains the information you would like to use for this Widget.

  • Click the "Data Collection" pulldown, then select from the list of available Data Collections.
  • If you're using the sample CSV data, select "Sample.Data.ChartData".
  • If there are no Data Collections available in the pulldown, then click here for instructions on how to bring in some Sample Chart Data, or refer to Add/Edit/Remove a Data Collection.


Configure the X-Axis

Select the desired Field to use for the X-Axis of the Chart.

  • The "rows" of this column of data will make up the X-Axis.
If you're using Sample.Data.ChartData, then select "Month" to be the Field.


Type

Select an option for Type from the drop-down box. This will be used to determine how the data is translated by AppBoard into the labels that are shown along the x-axis:

  • LinearAxis: x-axis values are determined as a linear progression between the lowest and highest values.
  • LogAxis: x-axis values are determined as a logarithmic progression between the lowest and highest values. Labels on the logarithmic axis are even powers of 10.
  • CategoryAxis: This is the default. The "rows" observed in the selected column of data will make up the X-Axis.
  • DateTimeAxis: x-axis values are determined as time-based values such as hours, days, weeks, or years.
If you're using Sample.Data.ChartData, then select "CategoryAxis" to be the Type.


Configure a Series (Y-Axis)

  • Click the "Add" button in the button toolbar of the Series DataGrid.
  • Repeat to add additional series.
  • Series may be removed with the "Remove" button next to the "Add" button.


Y-Field

  • Values contained within the "Y-field" will determine the height for that series.
  • If you're using Sample.Data.ChartData, then select "Software" as the Y-field.


Form

Specifies the way in which the data series is shown in the chart. The following options are provided:

  • segment - Draws lines as connected segments that are angled to connect at each data point in the series. This is the default.
  • curve - Draws curves between data points.
  • horizontal - Draws only the horizontal line from the x-coordinate of the first point to the x-coordinate of the second point at the y-coordinate of the first point. Repeats this action for each data point.
  • reverseStep - Draws lines as horizontal and vertical segments. At the first data point, draws a vertical line, and then a horizontal line to the second point. Repeats this action for each data point.
  • step - Draws lines as horizontal and vertical segments. At the first data point, draws a horizontal line, and then a vertical line to the second point. Repeats this action for each data point.
  • vertical - Draws only the vertical line from the y-coordinate of the first point to the y-coordinate of the second point at the x-coordinate of the second point. Repeats this action for each data point.


Sample Area Chart Forms


Color

  • Color will work in conjunction with Fill Style to distinguish one series from another.
  • You can select color by clicking on the color swatches in the color picker, or you can manually enter a hexadecimal color value.


Alpha

  • Alpha sets the opacity of the series.
  • Reducing the Alpha lets you see grid lines show through the columns.

Sample Area Alpha


Weight

  • Weight refers to how thick the line on the line chart will be.
  • Larger numbers equate to the thicker lines.

Sample Area Chart


Additional Area Chart Options

  • Show Legend
    Toggles chart legend on/off.
  • X-Axis title
    Allows you to enter a custom title for the X-Axis, which can be toggled on/off.
  • X-Axis labels
    Allows you to rotate the X-Axis labels. You can also toggle the X-Axis labels on/off.
  • Y-Axis title
    Allows you to enter a custom title for the Y-Axis, which can be toggled on/off.
  • Y-Axis labels
    Allows you to rotate the Y-Axis labels. You can also toggle the Y-Axis labels on/off.
  • Show Mouse-Over Data Tips
    This option enables data tips to appear when mousing over the vertices of a line chart.
  • Use Custom Mouse-Over Data Tips
    This option enables you to customize the data tips that appear when mousing over the vertices of a line chart.


Additional Configuration Steps

  • Provide additional configuration, if needed, on the Options tab. For details on the available Options, see Options.


  • Enter the following information on the Actions tab:
    • Click Add Event Action to configure one or more Actions to be invoked when a user clicks on the Line Chart Widget. The action will apply to the current data record being displayed.


Sample Data

Instructions for bringing sample chart data into AppBoard can be found here: Sample Chart Data