Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The problem is you are grouping the data with <code>Status</code> but you don't have <code>Status</code> values for each <code>Product</code> on the <code>X axis</code>. So there are <code>EmptyPoints</code> in the series. Now you could use </p> <pre><code>Chart2.DataManipulator.InsertEmptyPoints(1, IntervalType.Days, "series name"); </code></pre> <p>but the <code>IntervalType</code> is an <code>enum</code> predfined with <code>Number</code>, <code>Years</code>, <code>Months</code> etc. but our <code>IntervalType</code> should be <code>Status</code>. I haven't checked if it is possible to define custom <code>IntervalType</code>, so the best bet is to check the table for missing <code>Status</code> entries for each <code>Product</code> in the <code>DataTable</code> and fill them with a default value, then the chart will display correctly.</p> <pre><code>table.Rows.Add("FRA", "Completed", 20); table.Rows.Add("FRA", "Exceptions", 10); table.Rows.Add("FRA", "Approval Pending", 0); table.Rows.Add("Swaption", "Exceptions", 15); table.Rows.Add("Swaption", "Completed", 50); table.Rows.Add("Swaption", "Approval Pending", 0); table.Rows.Add("Cap/Floor", "Exceptions", 40); table.Rows.Add("Cap/Floor", "Approval Pending", 10); table.Rows.Add("Cap/Floor", "Completed", 0); table.Rows.Add("Single currency swap", "Completed", 70); table.Rows.Add("Single currency swap", "Approval Pending", 30); table.Rows.Add("Single currency swap", "Exceptions", 0); table.Rows.Add("Cross currency swap", "Exceptions", 20); table.Rows.Add("Cross currency swap", "Completed", 0); table.Rows.Add("Cross currency swap", "Approval Pending", 0); table.Rows.Add("IRS", "Completed", 40); table.Rows.Add("IRS", "Approval Pending", 70); table.Rows.Add("IRS", "Exceptions", 0); table.Rows.Add("Single currency Option", "Completed", 70); table.Rows.Add("Single currency Option", "Exceptions", 50); table.Rows.Add("Single currency Option", "Approval Pending", 0); table.Rows.Add("Some Derivative", "Completed", 40); table.Rows.Add("Some Derivative", "Exceptions", 10); table.Rows.Add("Some Derivative", "Approval Pending", 50); </code></pre>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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