Bar Chart

Bar Chart

A bar chart is a method of displaying data with categories represented by horizontal rectangular bars. They allow easy comparisons among a number of items and trend analysis.

How to Create a Bar Chart:

  • First, you need to go to Visualization Section in Reports V2 and select the Bar Chart option.

  • Now in the Build panel go to the Y-axis section and Choose or Drop the desired Dimension column(Date or Categorical column).

For eg: You need to create a "Region-wise Revenue Report" and then you need to select the "Region" column in the Y-axis section.

  • Now in the X-Axis section, you need to select the relevant Measure columns with desired Aggregation functions such as Sum of Sales, Count of Orders, etc wrt which you want to plot the Bar Chart.

  • Then Click on the Run Button and your Bar Chart will be ready.

In Report V2 Bar Chart has two panels Build and Format.

Build

This panel is like a building block for the Bar Chart. It allows you to select various Dimension and Measure columns for creating the Bar Chart.

It is further divided into 3 parts:

Chart Settings: This allows you to select the relevant Dimension and Measure Columns.

  • X-Axis: Here you can select 1 or more Measure Columns using which you will plot horizontal bars in the Bar Chart.

  • Y-Axis: Here you can select only 1 Dimension Column (Date or Categorical) against which you need to plot the Bar Chart in the Y-axis.

  • Category: Here you can select any 1 dimension column to further divide the Bar Chart into different subcategories each with their separate horizontal bars.

For eg: You have created a "Region Wise Number of Orders" report and now you want to further divide this report to see how two genders Male/Female have contributed in the same then you can easily achieve that by selecting the "Gender" column in the Category section and Click on the Run Button. You will now have an updated Bar Chart showcasing the "Region Wise Number of Orders" along with the Gender wise division for each region represented by separate bars.

Row Limit: This allows you to limit the Output rows by going to the Row Limit section in the Build panel then selecting the number of rows and clicking on the Run Button.

Sort: This allows you to Sort the report based on certain columns. Go to the Sort option at the bottom in the Build panel then choose one or more columns along with the order Ascending or Descending and then click on the Run button.

Format

This panel allows you to apply various formatting techniques on the Bar Chart to make it more customized as per your need. It consists of various different sections which are as follows:

Title: This allows you to give the Title to the Bar Chart. You just need to go to the Title section in the Format panel, enter the title and click on Apply button.

Legend: This allows you an option whether you want to showcase the chart legends in your Bar Chart or not with the help of a toggle button. By default it is disabled but you easily enable it by clicking on the Show Legend toggle button.

How to enable and show Legend in your Bar Chart:

  • First, you need to go to the Legend section in the Format panel and enable the Show Legend toggle button.

  • A new dropdown will open up.

  • You then need to select the Legend Type: Plain or Scroll. (Plain when you have less number of legends like 2-4 and Scroll when you have a large number of legends like more than 4)

  • Font Size: This allows you to choose the font size of the Legends to be shown in the Bar Chart as per your need.

  • Font Weight: This allows you to decide the appearance of Legend's font in the Bar Chart. You can choose either Normal or Bold.

  • Font Style: This allows you to choose the font style for Legends' font in the Bar Chart. You can choose either Normal or Italic.

  • Font Family: This allows you to choose the font family for Legends' font in the Bar Chart. You can choose from a set of different Font Family as per your need.

  • Icon: This allows you to choose the icon appearing alongside the Legends in the Bar Chart. You can choose from a set of different Icon types like Circles, triangles, etc as per your need.

X-Axis: This allows you to name the X-axis and showcase the axis labels in Bar Chart. It has the following components:

  • Name: Here you can give the name for the X-axis in the Bar Chart.

  • Name Gap: This allows you to decide how far below the X-axis the name should appear.

  • Scale: It allows you to choose the X-axis scale as per your requirement and data values. You can choose either a Linear or a Logarithmic scale.

  • Scale Start: Here you need to select the starting point for the X-axis scale.

  • Scale End: Here you need to select the end point of X axis scale.

  • Position: Here you can choose the position of the X-axis like whether you want to show the X-axis scale on LHS or RHS.

  • Name Label: This allows you to decide the format of the name given to the X axis like font size, font type, font family, etc.

  • Axis Label: This allows you to enable/ disable the X-axis labels in the Bar chart. By default it is disabled and you can easily enable it by clicking on the Show toggle button and then choosing the relevant font format for the axis labels to be displayed in the Bar chart.

Y-Axis: This allows you to name the Y-axis and showcase the axis labels in Bar Chart. It has the following components:

  • Name: Here you can give the name for the Y-axis in the Bar Chart.

  • Name Gap: This allows you to decide how far left the Y-axis the name should appear.

  • Name Label: This allows you to decide the format of the name given to the Y-axis like font size, font type, font family, etc.

  • Axis Label: This allows you to enable/ disable the axis labels in the Bar chart. By default it is disabled and you can easily enable it by clicking on the Show toggle button and then choosing the relevant font format for the axis labels to be displayed in the Bar chart.

Data Colors: It allows you to select the desired color for showcasing the horizontal bars (data points) in the Bar Chart as per your need.

By default, it will be Blue and you can change it by clicking on the Data Colors section in the Format panel then choosing the measure column for which you want to change the color, and finally selecting the color and clicking on Apply button.

Data Labels: It allows you to enable/disable the visibility of data labels in the Bar chart. By default, it will be disabled. It has the following components:

  • Rotate: It allows you to rotate the data labels with respect to the data points as per your need. You can values between 0 to 90 depending upon at what angle you want to rotate the data labels.

  • Align: It allows you to adjust the horizontal alignment of data labels with respect to the data points. You can select either of these three Right, Center, and Left alignments.

  • Vertical Align: It allows you to adjust the vertical alignment of data labels with respect to the data points. You can select either of these three Top, Middle, and Bottom alignments.

  • Position: It allows you to adjust the position of data labels with respect to the data points. You can adjust the relevant position by choosing the correct position from the dropdown menu as per your need.

  • Distance: It allows you to adjust the distance between the data labels and data points as per your need. It helps in case you have too many overlapped or congested data points in your Bar Chart as you can easily increase the distance value so that the data labels will have more space and becomes more visible.

Stack: It allows you to enable/disable the stacking of various Columns over each other in the Bar Chart resulting in a Stacked Bar chart.

Data Zoom: It allows you to zoom in/out the report output as per your need. It is disabled by default so you need to enable it first if you need to zoom in on your report.

It has the following components:

  • Slider: It allows you a slider functionality using which you can scroll through the zoomed-in version of your report(Bar Chart). If it is not enabled then you can only view a static zoomed-in part of your report output.

  • Start %: It allows you to set the starting point of your Bar Chart report from where you want to zoom in.

  • End %: It allows you to set the end point of your Bar Chart report up to which you want to zoom in.

Grid Offset: It allows you to adjust the chart grid as per your need. It has 4 offset types: Right, Left, Top, and Bottom.

Field Formatting: This allows you to format field values in any Bar as per your requirement. It involves changing the field value's display units, the number of decimal places, any prefix or suffix, etc.

Last updated