Note that there are some explanatory texts on larger screens.

plurals
  1. POLast column not displayed MS Chart
    primarykey
    data
    text
    <p>I am displaying a column type chart on my Asp.net page. The code is as follows :</p> <pre><code>private DataSet FetchDummyChartData() { DataSet ds = new DataSet(); DataTable table = new DataTable(); table.Columns.Add("Product", typeof(string)); table.Columns.Add("Status", typeof(string)); table.Columns.Add("Count", typeof(int)); table.Rows.Add("FRA", "Completed", 20); table.Rows.Add("FRA", "Exceptions", 10); table.Rows.Add("Swaption", "Exceptions", 15); table.Rows.Add("Swaption", "Completed", 50); table.Rows.Add("Cap/Floor", "Exceptions", 40); table.Rows.Add("Cap/Floor", "Approval Pending", 10); table.Rows.Add("Single currency swap", "Completed", 70); table.Rows.Add("Single currency swap", "Approval Pending", 30); table.Rows.Add("Cross currency swap", "Completed", 60); table.Rows.Add("Cross currency swap", "Exceptions", 20); table.Rows.Add("IRS", "Completed", 40); table.Rows.Add("IRS", "Approval Pending", 70); table.Rows.Add("Single currency Option", "Completed", 70); table.Rows.Add("Single currency Option", "Exceptions", 50); table.Rows.Add("Some Derivative", "Completed", 40); table.Rows.Add("Some Derivative", "Exceptions", 10); table.Rows.Add("Some Derivative", "Approval Pending", 50); ds.Tables.Add(table); return ds; } Chart2.DataBindCrossTable(new DataView(FetchDummyChartData().Tables[0]), "Status", "Product", "Count", null); </code></pre> <p>The problem is that if items on X-axis contains larger than 3-4 items, (Here the items "FRA", "IRS" etc represents the X-axis) then the last columns aren't displayed. Note that this is a multiline chart. This is very wierd behaviour. There is no CSS/space issue, I checked that.</p> <p>Here is the screenshot : <img src="https://i.stack.imgur.com/WgeYI.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload