Total Items Chart
This shortcode is used to display the total number of Classes, Courses, Lessons, Quizzes, Questions, Assignments and Packages created by the Instructor or the Administrator in the PIE chart or Bar Chart.
Chart Display Parameters
Parameter
Description
chart-title
Title to be displayed on the chart.
chart-type
pie
or bar
– Select the type of chart to be rendered.
set-unique-colors
true
or false
– If set to true
, allows assigning distinct colors to each data item.
Color Customization (Active only if set-unique-colors="true"
)
Color Parameter
Description
first-color
Color for the first item
second-color
Color for the second item
third-color
Color for the third item
fourth-color
Color for the fourth item
fifth-color
Color for the fifth item
sixth-color
Color for the sixth item
seventh-color
Color for the seventh item
Additional Options
Parameter
Description
content-type
all-items
or individual-items
– If used by an admin, shows total items globally or only the items created by the logged-in admin.
class
Optional. Add custom class name for additional CSS styling.

[dtlms_total_items_chart chart-title="Total Items" chart-type="bar" set-unique-colors="true" content-type="individual-items" first-color="#eeee22" second-color="#dd3333" third-color="#dd9933" fourth-color="#1e73be" fifth-color="#8224e3" sixth-color="#7a243c" seventh-color="#51890d" class="custom-class"]