You can change the charts available in a report, as well as change the default chart for the report.
Before you begin
You must have Use application, Use analytics, and Develop app permissions and have a thorough understanding of XML and SDL LiveContent Reach skin development. See "Customizing Skins" in the SDL LiveContent Reach User Guide for more information. Additionally, if your modifications extend beyond changing a report title, report grouping, or chart type, you should be knowledgeable about HTML, CSS, JavaScript, XQuery, and XSL technologies.
Procedure
- Open the configuration, identify and note the
<analytic/> element for the report that you want to edit.
- Within the
<analytic/> element, locate the <charts> element, and then the <chart> element that you want to modify.
- Add or remove
<chart> elements within the <charts> element.
- Assign the
default="true" attribute to the <chart> element that you designate to be the default chart presentation; only one chart can be the default.
- Modify the
type and view attributes, as appropriate.
The view attribute binds the chart's presentation to the appropriate section of the
analytics_views.xsl style sheet, which builds the underlying "AnyChart" XML that drives the chart's final display.
Note: The available chart
types include the following:
- TableView
- PieChart
- LineChart
- BarChart
- Save the configuration.
- Upload the new skin customization into the database.
- You can upload the resources using the web UI, as described by Adding a Skin and Resources.
- You can also update the skins via the command line using the loaddb tool. Copy the updated skin resources from the source code repository to LiveContent_home/db/LiveContent/ui/skins/<your_skin>/.
- On Windows, to load the most recent changes into the database run this command:
loaddb.bat UPGRADE
- On Linux, run this command:
loaddb.sh UPGRADE