Documentation Center

Changing the Charts in an Analytics Report

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. You should have a thorough understanding of XML and Content Delivery skin development. You should be familiar with this documentation's content on "Customizing skins". 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

  1. Open the configuration, identify and note the <analytic/> element for the report that you want to edit.
  2. Within the <analytic/> element, locate the <charts> element, and then the <chart> element that you want to modify.
  3. Add or remove <chart> elements within the <charts> element.
  4. 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.
  5. 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.
  6. Save the configuration.
  7. 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 ContentDelivery_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