I have a bar chart, which has a pop-up pie chart (showing some more granular information) in a tooltip.
This works well, except I don't seem able to change the thick border surrounding the pop-up chart (image attached). I've tried configuring the various borders (tooltip on the main chart, chartArea on the pop-Up chart etc..), but nothing makes any difference. What do I need to set to reduce the border thickness?
The main chart tooltip is defined here:-
.Tooltip(tooltip => tooltip
.Visible(
true
)
.Template(
"#=tooltipTemplate(dataItem)#"
)
)
The tooltip template here:-
<script id=
"childChartTemplate"
type=
"text/x-kendo-template"
>
<div id=
"childChart"
/>
# setTimeout(function() { createChildChart(AdditionalID,Year,Mth,XValue); }) #
</script>
The JavaScript is:-
var
tooltipTemplate = kendo.template($(
"#childChartTemplate"
).html());
function
createChildChart(medicID,Year, Mth, PractName) {
var
childDataSource =
new
kendo.data.DataSource({
transport: {
read: {
url:
"@Url.Content("
~/Dashboard/GetMonthlyMedicSessionSummary/Get
")"
,
dataType:
"json"
,
data: {
MedicID: medicID,
year: Year,
mth:Mth,
DirectorateID: selectedDirectorate
}
}
}
});
$(
"#childChart"
).kendoChart({
dataSource: childDataSource,
title: {
text:
"Session Type Split - "
+ PractName,
font:
"11px Arial"
},
theme:
"bootstrap"
,
legend: {
visible:
true
},
seriesDefaults: {
type:
"pie"
,
labels: {
visible:
true
,
format:
"{0}"
}
},
series: [{
field:
"YIntValue"
,
categoryField:
"XValue"
,
name:
"Session Type"
,
labels: {
visible:
true
,
distance: 15
}
}]
});
}
Thanks