Skip to content

Commit

Permalink
Sync with Kendo UI Professional
Browse files Browse the repository at this point in the history
  • Loading branch information
kendo-bot committed Jul 26, 2024
1 parent 7c1478b commit 668b5f8
Show file tree
Hide file tree
Showing 10 changed files with 441 additions and 86 deletions.
7 changes: 3 additions & 4 deletions docs/api/javascript/data/datasource.md
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ The field from the server response which contains server-side errors. Can be set
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "https://www.mocky.io/v2/5ad0597a3100004f004eac46",
url: "https://run.mocky.io/v3/ef00571f-cd9c-4bb3-a8fc-c98afa9e8de4",
}
},
schema: {
Expand All @@ -1162,9 +1162,8 @@ The field from the server response which contains server-side errors. Can be set
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "https://demos.telerik.com/kendo-ui/service/twitter/search",
dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
data: { q: "aaaaa" }
url: "https://run.mocky.io/v3/c9fb4321-bb6f-4f8c-a379-7499329586ed",
dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
}
},
schema: {
Expand Down
7 changes: 5 additions & 2 deletions docs/api/javascript/data/pivotdatasourcev2.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ The function that is used to aggregate the measure value.

The built-in aggregates are:
* `average`
* `count`
* `max`
* `min`
* `sum`
Expand All @@ -418,7 +419,8 @@ The built-in aggregates are:
}
}
}
});
}
});

dataSource.fetch(function() {
/* The result can be observed in the DevTools(F12) console of the browser. */
Expand Down Expand Up @@ -642,7 +644,8 @@ The options of the discover request.
catalogName: dataSource.catalog(),
cubeName: dataSource.cube()
}
});
}
});
</script>

### measures
Expand Down
104 changes: 104 additions & 0 deletions docs/api/javascript/dataviz/ui/chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -14868,6 +14868,110 @@ The width of the line.
});
</script>

### series.highlight.markers.border

The border of the highlighted markers.

```dojo
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
type: "line",
markers: {
visible: true,
type: "roundedRect",
},
highlight: {
border: {
color: 'blue',
width: 10
}
},
data: [1, 2, 3]
}]
});
</script>
```

### series.highlight.markers.border.color

The border color of the highlighted markers.

```dojo
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
type: "line",
markers: {
visible: true,
type: "roundedRect",
},
highlight: {
border: {
color: 'blue',
width: 10
}
},
data: [1, 2, 3]
}]
});
</script>
```

### series.highlight.markers.border.width

The border width of the highlighted markers.

```dojo
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
type: "line",
markers: {
visible: true,
type: "roundedRect",
},
highlight: {
border: {
color: 'blue',
width: 10
}
},
data: [1, 2, 3]
}]
});
</script>
```

### series.highlight.markers.color

The color of the highlighted marker.

```dojo
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
type: "line",
markers: {
visible: true,
type: "roundedRect",
},
highlight: {
markers:{
color: 'red'
}
},
data: [1, 2, 3]
}]
});
</script>
```


### series.highlight.opacity `Number`

The opacity of the highlighted points.
Expand Down
4 changes: 2 additions & 2 deletions docs/api/javascript/ui/pivotgrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ About the data item structure review this [help topic](/api/javascript/data/pivo
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true } ],
measures: ["[Measures].[Internet Revenue Status]"],
measures: [{ name: "[Measures].[Internet Revenue Status]", type: "status"}],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
Expand Down Expand Up @@ -1207,7 +1207,7 @@ About the data item structure review this [help topic](/api/javascript/data/pivo
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true } ],
measures: ["[Measures].[Internet Revenue Trend]"],
measures: [{ name: "[Measures].[Internet Revenue Trend]", type: "trend"}],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
Expand Down
87 changes: 45 additions & 42 deletions docs/api/javascript/ui/pivotgridv2.md
Original file line number Diff line number Diff line change
Expand Up @@ -860,31 +860,33 @@ The fields which can be used in the template are:
#### Example - specify a custom template for the KPI Status measure

<div id="pivotgrid"></div>

<script>
$("#pivotgrid").kendoPivotGridV2({
kpiStatusTemplate:({ dataItem }) => `${dataItem.value !== 0 ? "<em>Open/Denied</em>" : "<strong>Hold</strong>"}`,
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true } ],
measures: ["[Measures].[Internet Revenue Status]"],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
cube: "Adventure Works"
$("#pivotgrid").kendoPivotGridV2({
kpiStatusTemplate:({ dataItem }) => `${dataItem.value !== 0 ? "<em>Open/Denied</em>" : "<strong>Hold</strong>"}`,
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true } ],
rows: [{ name: "[Geography].[City]" }],
measures: [{ name: "[Measures].[Internet Revenue Status]", type: "status"}],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
cube: "Adventure Works"
},
read: {
url: "https://demos.telerik.com/olap/msmdpump.dll",
dataType: "text",
contentType: "text/xml",
type: "POST"
}
},
read: {
url: "https://demos.telerik.com/olap/msmdpump.dll",
dataType: "text",
contentType: "text/xml",
type: "POST"
schema: {
type: "xmla"
}
},
schema: {
type: "xmla"
}
}
});
});

</script>

### kpiTrendTemplate `String|Function`
Expand All @@ -901,31 +903,32 @@ The fields which can be used in the template are:
#### Example - specify a custom template for the KPI Trend measure

<div id="pivotgrid"></div>

<script>
$("#pivotgrid").kendoPivotGridV2({
kpiTrendTemplate: ({ dataItem }) => `${dataItem.value !== 0 ? "<em>Increase/Decrease</em>" : "<strong>Equal</strong>"}`,
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true } ],
measures: ["[Measures].[Internet Revenue Trend]"],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
cube: "Adventure Works"
$("#pivotgrid").kendoPivotGridV2({
kpiTrendTemplate: ({ dataItem }) => `${dataItem.value !== 0 ? "<em>Increase/Decrease</em>" : "<strong>Equal</strong>"}`,
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true } ],
rows: [{ name: "[Geography].[City]" }],
measures: [{ name: "[Measures].[Internet Revenue Trend]", type: "trend"}],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
cube: "Adventure Works"
},
read: {
url: "https://demos.telerik.com/olap/msmdpump.dll",
dataType: "text",
contentType: "text/xml",
type: "POST"
}
},
read: {
url: "https://demos.telerik.com/olap/msmdpump.dll",
dataType: "text",
contentType: "text/xml",
type: "POST"
schema: {
type: "xmla"
}
},
schema: {
type: "xmla"
}
}
});
});
</script>

### rowHeaderTemplate `String|Function`
Expand Down
Loading

0 comments on commit 668b5f8

Please sign in to comment.