I have 2 barcharts on a page, 1 showing monthly gross wages for a Year To Date, and a separate chart displaying the same thing, for the same period but for a year previously. I'd like to hilight somehow, whether through a different bar color or bold facing both the common categories in both charts... I hope that makes sense... Let's trim it down..
First chart shows customer A, B, and C
Second chart shows customer B, D, E
Somehow or another, I'd like to draw the viewers attention that the same customer appears on both charts. As I said, they are each different charts and data series' and completely unaware of each other.
<div class="chart"> @(Html.Kendo().Chart<GWChartData>() .Name("chartPayrollYTD") .ChartArea(ca => ca.Height(600)) .HtmlAttributes(new {@class = "center" }) .Title("Top 10 Client Gross Wages - YTD (" + DateTime.Now.ToString("MMMM") + " " + DateTime.Now.Year + ")") .Legend(l => l.Position(ChartLegendPosition.Top)) .Series(s => { s.Column(m => m.GrossWages).Name("Gross Wages").Color("#009933").Labels(l => l.Visible(true).Position(ChartBarLabelsPosition.OutsideEnd).Format("C")); }) .ValueAxis(va => va.Numeric().MinorGridLines(m => m.Visible(true)).Labels(l => l.Format("C"))) .CategoryAxis(c => c.Categories(m => m.ClientId).Labels(l => l.Visible(true))) .DataSource(ds => ds .Read(r => r.Action("YTDGrossWages", "GWHReport", new {topNumber = 10}).Type(HttpVerbs.Get)) .Events(ev => { ev.RequestEnd("requestEnd"); ev.RequestStart("requestStart"); }) ) .Tooltip(tp => tp.Visible(true).Template("#=category# - #=dataItem.ClientName#: #=kendo.format('{0:C}', value)#")) )</div><div class="chart"> @(Html.Kendo().Chart<GWChartData>() .Name("chartPayrollLastYear") .ChartArea(ca => ca.Height(600)) .HtmlAttributes(new {@class = "center" }) .Title("Top 10 Client Gross Wages - YTD (" + DateTime.Now.ToString("MMMM") + " " + (DateTime.Now.Year - 1) + ")") .Legend(l => l.Position(ChartLegendPosition.Top)) .Series(s => { s.Column(m => m.GrossWages).Name("Gross Wages").Color("#009933").Labels(l => l.Visible(true).Position(ChartBarLabelsPosition.OutsideEnd).Format("C")); }) .ValueAxis(va => va.Numeric().MinorGridLines(m => m.Visible(true)).Labels(l => l.Format("C"))) .CategoryAxis(c => c.Categories(m => m.ClientId).Labels(l => l.Visible(true))) .DataSource(ds => ds .Read(r => r.Action("YTDGrossWages_LastYear", "GWHReport", new {topNumber = 10}).Type(HttpVerbs.Get)) .Events(ev => { ev.RequestEnd("requestEnd"); ev.RequestStart("requestStart"); }) ) .Tooltip(tp => tp.Visible(true).Template("#=category# - #=dataItem.ClientName#: #=kendo.format('{0:C}', value)#")) )</div>