Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
MS CRM 2011 Customizing Chart Legend

已答复 MS CRM 2011 Customizing Chart Legend

  • 10. april 2012 14:33
     
      Har kode

    I would like to customize the legend on my pie chart for the case entity. I would like the labels on the legend to be Due this week, Due next week and due this month. By default the labels are Week 1 of 2012, Week  2 of 2012 and so on when the dategrouping is set to week.

    Here is my current xml code:

    <visualization>
      <visualizationid>{A3E83100-817E-E111-9D70-00155D01C236}</visualizationid>
      <name>Follow Up Pie Chart</name>
      <primaryentitytypecode>case</primaryentitytypecode>
      <datadescription>
        <datadefinition>
          <fetchcollection>
            <fetch mapping="logical" aggregate="true">
              <entity name="case">
                <attribute alias="aggregate_column" name="name" aggregate="count" />
                <attribute groupby="true" alias="groupby_column" name="followupdate" dategrouping="week"/>
                <filter type="and">
                  <filter type="or">
                    <condition attribute="followupdate" operator="this-week" />
                    <condition attribute="followupdate" operator="next-week" />
                    <condition attribute="followupdate" operator="this-month" />
                  </filter>
                </filter>
              </entity>
            </fetch>
          </fetchcollection>
          <categorycollection>
            <category>
              <measurecollection>
                <measure alias="aggregate_column"/>
              </measurecollection>
            </category>
          </categorycollection>
        </datadefinition>
      </datadescription>
      <presentationdescription>
        <Chart Palette="None" PaletteCustomColors="97,142,206; 209,98,96; 168,203,104; 142,116,178; 93,186,215; 255,155,83; 148,172,215; 217,148,147; 189,213,151; 173,158,196; 145,201,221; 255,180,138">
          <Series>
            <Series ShadowOffset="0" IsValueShownAsLabel="true" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PieLabelStyle=Inside, PieDrawingStyle=Default" ChartType="pie" IsVisibleInLegend="true">
            </Series>
          </Series>
          <ChartAreas>
            <ChartArea>
              <Area3DStyle Enable3D="false" />
            </ChartArea>
          </ChartAreas>
          <Legends>
            <Legend Alignment="Center" LegendStyle="Table" Docking="right" IsEquallySpacedItems="True" Font="{0}, 11px" ShadowColor="0, 0, 0, 0" ForeColor="59, 59, 59">
            </Legend>
          </Legends>
          <Titles>
            <Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="0, 0, 0"></Title>
          </Titles>
        </Chart>
      </presentationdescription>
      <isdefault>false</isdefault>
    </visualization>
    

    Here is what the current chart looks like:

    Here is what I want it took like:

    I tried hiding the default legend and showing a custom legend but it would be correct only if there was data in all three categories.

Alle besvarelser