LogoLogo
  • CHARTS USER GUIDE
    • Introduction
    • Angular Gauge Chart
    • Bar/Column Chart
    • Bubble Chart
    • Bullet Chart
    • Calendar Heatmap Chart
    • Column Range Chart
    • Combination Chart
    • Dumbbell Chart
    • Filter Chart
    • Funnel Chart
    • Grid Chart
    • Table heatmap
    • Histogram Chart
    • KPI Animation Chart
    • KPI Ring Chart
    • Line/Area line Chart
    • Mekko Chart
    • Packed Bubble Chart
    • Pie Chart
    • Polar Charts
    • Sankey Chart
    • Simple KPI Chart
    • Slope Chart
    • Sparkline Chart
    • Stacked Column/Bar
    • Text Node
    • Tornado Chart
    • Trellis Chart
    • Variwide Chart
    • Waffle Chart
    • Waterfall Chart
    • Wordcloud Chart
    • Workstation
    • Allow/Block URLs
    • Animation Duration
    • Attribute Forms
    • Auto Scroll
    • Axes
    • Background Images
    • Backward Compatibility
    • Bar/Column Width
    • Color Picker with Opacity
    • Connect Null Points
    • Custom Markers
    • Custom SVG Markers
    • Data Markers
    • Data label customization
    • Dossiers/Documents differences
    • Drilling
    • Error Bars
    • Export to PDF
      • Export engine local resource set up
    • Formatting metric data
    • Gradient Threshold
    • Legend
    • Negative Sign
    • Pattern Fill
    • Play Animation
    • Plot lines/Reference lines
    • Reset color property
    • Reset font properties
    • Right Click Menu
    • Right-to-left Support
    • Series using Attribute
    • Small Multiples
    • Smooth Line
    • Tooltip Customization
    • Tooltip Links
  • GRID/MICROCHART GUIDE
    • Appearance
    • Auto Size
    • Column Totals
    • Context Menu
    • Creating a micro chart
    • Custom markers
    • Custom Editor
    • Filter Data
    • Format/Clear Format
    • Grand Total
    • Pivoting and Row Grouping
    • Horizontal Bars/Pins
    • Embed Images
    • Manage Scaling Grouping
    • Manage Column Grouping
    • Manage Metric Grouping
    • Pin Column
    • Reorder columns
    • Reset Columns
    • Show/Hide Column
    • Sorting
    • Subtotals
    • Thresholds
    • Tooltip
    • Transparency
    • Trend Lines
    • Value Aggregation
    • Variance
  • MAPS USER GUIDE
    • Creating New Maps
    • Custom Layouts
    • Customization of the Map chart
    • Default Maps
    • Formatting Options
    • Generic Merge tool
    • US map using counties data
    • US Map using ZIP Codes
  • IBCS USER GUIDE
    • IBCS
      • Why IBCS
      • Mapping IBCS Scenarios
      • Negative Metrics
      • Scaling Multiple Charts
    • CERTIFIED CHARTS
      • Multi-tier Bar chart
      • Multi-tier Column chart
      • Small Multiples
      • Vertical Waterfall
  • CUSTOMIZATION GUIDE
    • Introduction
    • Custom CSS
    • Custom CSS Samples
    • Custom Color Palette
    • Custom Fonts
    • Condensed Metric Format
    • Disable Edit button
    • Grid Custom CSS
    • Localization
  • FAQ
    • Contact Us
    • FAQS
  • INSTALL DOCS
    • Installing on MicroStrategy Web
    • Installing on MicroStrategy Desktop/Workstation
    • Installing on MicroStrategy Library
    • Installing on MicroStrategy Mobile
    • Release Notes
    • Release Notes Maps
Powered by GitBook
On this page
  • Custom CSS in Vitara Charts
  • CSS Rules

Was this helpful?

  1. CUSTOMIZATION GUIDE

Custom CSS

These features are supported in the release 4.2 (or newer)

Important Note: After making any changes, you must clear your browser’s cache to ensure the updates are reflected in Vitara Charts.

Custom CSS in Vitara Charts

If you use custom CSS styles in Vitara Charts, no presentational characteristics (such as fill, stroke, font styles, and so on) are applied to the chart SVG. Instead, CSS is used to apply the design.

To customize your styles, edit the customStyles.css file and add your own CSS rules.

The customStyles.css file is located at,

tomcat/webapps/MicroStrategy/plugins/VitaraCharts/custom

The following is an overview of the CSS rules which are internally set on the VitaraCharts.

CSS Rules

.vitara-chart-background

The chart area background. Use this to set the chart area background fills.

.vitara-plot-background

The plot area background. Use this to set the plot area background fills.

.vitara-category-axis

Class for the category axis. Use this to set the category axis labels text style.

.vitara-value-axis

Class for the value axis. Use this to set the value axis labels' text style.

.vitara-axis-title

The title of the axis. Set the axis title text style with this. To set the title of a given axis, use this class in conjunction with the category or value axis. Text characteristics such as font-family, font-style, color, text-decoration, text-transform, and letter-spacing can be changed.

.vitara-axis-line

The axis line is a straight line. Set the width and color of the axis line with this. To set the axis line attributes of a certain axis, use this class in conjunction with the category or value axis.

.vitara-line-display

The line series. Use this to set the default line style in any line series. Use this class in conjunction with the chart's class name to specifically set the line properties of that particular chart. Line properties like stroke-dasharray, stroke and stroke-width can be set.

.vitara-grid-line

The grid line. Use this to set the grid line properties. Line properties like stroke-dasharray, stroke and stroke-width can be set.

.vitara-legend-text

The legend item text. Use this to set the legend item text style. Can change text properties like font-family, font-style, color, text-decoration, text-transform, letter-spacing.

.vitara-marker

Can change the fills and strokes and sizes of markers on VitaraCharts selected from the Marker tab in the property editor.

.vitara-datalabel

The datalabel. Use this to change the text style of datalabels. Can change text properties like font-family, font-style, color, text-decoration, text-transform, letter-spacing.

.vitara-point
  • The default class for any data element on the chart.

  • For example, in bar chart a bar is a data element and in a bubble chart a bubble is a data element.

  • Use this to change the text style of datalabels. Can change text properties like font-family, font-style, color, text-decoration, text-transform, and letter-spacing.

### CSS Class Names of charts

Chart Name

Class Name

Vitara Bar Chart

.VitaraHCBarChart

Vitara Stacked Bar Chart

.VitaraHCStackedBarChart

Vitara Column Chart

.VitaraHCColumnChart

Vitara Stacked Column Chart

.VitaraHCStackedColumnChart

Vitara Pie Chart

.VitaraHCPieChart

Vitara KPI Ring Chart

.VitaraHCKPIRingChart

Vitara Line Chart

.VitaraHCLineChart

Vitara Area Chart

.VitaraHCAreaChart

Vitara Bubble Chart

.VitaraHCBubbleChart

Vitara Tornado Chart

.VitaraHCTornadoChart

Vitara Sparkline Chart

.VitaraHCSparklineChart

Vitara Heatmap Chart

.VitaraHCHeatmapChart

Vitara Funnel Chart

.VitaraHCFunnelChart

Vitara Column Range Chart

.VitaraHCColumnRangeChart

Vitara Bullet Chart

.VitaraHCBulletChart

Vitara Waterfall Chart

.VitaraHCWaterfallChart

Vitara KPI Animation Chart

.VitaraD3KPIAnimationChart

Vitara Calendar Heatmap

.VitaraD3CalHeatMapChart

Vitara Simple KPI Chart

.VitaraSimpleKPIChart

Vitara Mekko Chart

.VitaraHCMekkoChart

Vitara Word Cloud

.VitaraHCWordCloud

Vitara Waffle Chart

.VitaraD3WaffleChart

Vitara Histogram Chart

.VitaraHCHistogramChart

Vitara Dumbbell Chart

.VitaraHCDumbbellChart

Vitara Slope Chart

.VitaraHCSlopeChart

Vitara Circle Packing Chart

.VitaraD3CirclePackingChart

Vitara Angular Gauge Chart

.VitaraHCAngularGaugeChart

Vitara Sankey Chart

.VitaraHCSankeyChart

PreviousIntroductionNextCustom CSS Samples

Last updated 14 days ago

Was this helpful?

Click here to

View sample implementations