SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my onet.xml I have a ChartWebPart. When I create a site, my ChartWebPart is filled with random data. Users get confused.

How to create an empty ChartWebPart which users can connect to their data?

        <AllUsersWebPart WebPartOrder="1" WebPartZoneID="TopRight">
        <webPart xmlns="">
            <type name="Microsoft.Office.Server.WebControls.ChartWebPart, Microsoft.Office.Server.Chart, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
            <importErrorMessage>Det går inte att importera den här webbdelen.</importErrorMessage>
              <property name="RealTimeInterval" type="int">0</property>
              <property name="Height" type="unit" />
              <property name="IsCustomized" type="bool">True</property>
              <property name="ListUrl" type="string" null="true" />
              <property name="AllowConnect" type="bool">True</property>
              <property name="CatalogIconImageUrl" type="string" />
              <property name="Title" type="string">Diagram</property>
              <property name="Hidden" type="bool">False</property>
              <property name="ShowDebugInfoRuntime" type="bool">False</property>
              <property name="BindToDataDesignMode" type="bool">True</property>
              <property name="TitleIconImageUrl" type="string" />
              <property name="ChromeState" type="chromestate">Normal</property>
              <property name="Description" type="string" />
              <property name="ChartXml" type="string"></property>
              <property name="AllowMinimize" type="bool">True</property>
              <property name="ChromeType" type="chrometype">None</property>
              <property name="AlignDataPointsByAxisLabel" type="bool">False</property>
              <property name="AllowZoneChange" type="bool">True</property>
              <property name="DataBindingsString" type="string">&lt;?xml version="1.0" encoding="utf-16"?&gt;
      &lt;ArrayOfDataBinding xmlns:xsi="" xmlns:xsd="" /&gt;</property>
              <property name="ShowToolbar" type="bool">True</property>
              <property name="Width" type="unit" />
              <property name="HelpMode" type="helpmode">Navigate</property>
              <property name="TitleUrl" type="string" />
              <property name="DesignerTemplateId" type="string">Column2D</property>
              <property name="HelpUrl" type="string" />
              <property name="ExportMode" type="exportmode">All</property>
              <property name="ConnectionPointEnabled" type="bool">True</property>
              <property name="AllowClose" type="bool">True</property>
              <property name="AllowEdit" type="bool">True</property>
              <property name="Direction" type="direction">NotSet</property>
              <property name="AllowHide" type="bool">True</property>
              <property name="DesignerChartTheme" type="Microsoft.Office.Server.Internal.Charting.Utilities.ChartTheme, Microsoft.Office.Server.Chart, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c">BrightPastel</property>
share|improve this question
As a workaround Ichanged <property name="ChromeState">Normal</property> till <property name="ChromeState">Minimized</property>(Minimized). Then I added text to the <property name="Description"></property> text like: "This chart shows only random data, connect it to a datasource to see your results. So if users want to use it, users must "edit page" and restore this webpart. – Anatoly Mironov Jul 8 '11 at 14:35
up vote 1 down vote accepted

You could use an empty list as a data source, but this will yield a completely blank chart canvas, i.e. an empty square. I'm guessing that users could get confused by that too though, perhaps more.

One thing I've learnt is that a bit of education on the "dummy" data in the web-part being for illustration purposes only would go a long way to solving your problem.

Remove the confusion, remove the problem! :D

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.