diff --git a/src/assets/styles/app.scss b/src/assets/styles/app.scss
index af39fb25b..0c2e4b5f8 100644
--- a/src/assets/styles/app.scss
+++ b/src/assets/styles/app.scss
@@ -674,14 +674,14 @@ body {
th {
background-color: #d6dade;
- padding: 8px 14px;
+ padding: 10px 14px;
text-align: left;
border: solid 1px #d6dade;
}
tbody{
td {
- padding: 8px 14px;
+ padding: 10px 14px;
border: 1px solid #eaecee;
}
diff --git a/src/components/chart/Chart.vue b/src/components/chart/Chart.vue
index c47874ba4..0b246b3da 100644
--- a/src/components/chart/Chart.vue
+++ b/src/components/chart/Chart.vue
@@ -1,6 +1,6 @@
Chart type is defined using the type property. Currently there are 6 options available; "pie", "doughtnut", "line", "bar", "radar" and "polarArea".
+Chart type is defined using the type property. Currently there are 6 options available; pie, doughtnut, line, bar, radar and polarArea.
Data of a chart is provided using a binding to the data property, each type has its own format of data. Here is an example of a line chart.
+Data of a chart is provided using a binding to the data property, each type has its own format of data. Here is an example of a line chart. For more information refer to the charts.js documentation.
While a series can be customized per dataset, general chart options are defined with options property. - Example below adds a title and customizes the legend position of the chart. For all available options refer to the charts.js documentation.
+ Example below adds a title and customizes the legend position of the chart. For all available options refer to the charts.js documentation.Any attribute such as style and class are passed to the main container element. Following is the additional property to configure the component.
refresh | - | Redraws the graph. | + +
reinit | +- | +Destroys the graph first and then creates it again. | +
generateLegend | +- | +Returns an HTML string of a legend for that chart. The legend is generated from the legendCallback in the options. |
Name | +Parameters | +Description | +
---|---|---|
select | +
+ event: original event + event.dataset: Selected dataset + event.element: Selected element + event.element._datasetIndex = Index of the dataset in data + event.element._index = Index of the data in dataset + |
+ Callback to invoke when a tab gets expanded. | +
Name | +Element | +
---|---|
p-chart | +Container element. | +