Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Chart Solution for SharePoint Hosted Apps

$
0
0

Hi,

Bit background:  We migrated from SharePoint 2010 to SharePoint 2013.  We had used the out-of-box (OOB) chart web part available in 2010 and were able to successfully port them over, however it seems chart web part is no longer available out of the box in SharePoint 2013.  I can, though, export a chart and add to web part library and make it available throughout my sites.  But, how about adding these to a SharePoint Hosted App?  I have tried mix and match of things to no luck.  I keep on getting 403 Forbidden error.  I have granted Tenant permission full control since this is on-premises.  I shouldn't have to look for an alternative charting solution for my apps (there are plenty).  Looking for suggestions and recommended way of doing things here.  Your help is always appreciated.  Thanks,

My page (copied chart control from SharePoint Designer)

<%@ Page Language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WpNs0" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server.Chart, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:ScriptLink Name="sp.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" />
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" ID="full" Title="loc:full" />
     <WpNs0:ChartWebPart runat="server" IsCustomized="False" DesignerTemplateId="" ChartXml="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;
&lt;Chart BorderColor=&quot;26, 59, 105&quot; BorderWidth=&quot;1&quot; BorderlineDashStyle=&quot;Solid&quot;&gt;
  &lt;Series&gt;
    &lt;Series Name=&quot;Default&quot; ShadowOffset=&quot;2&quot; ChartArea=&quot;Default&quot; BorderColor=&quot;26, 59, 105&quot;&gt;
    &lt;/Series&gt;
  &lt;/Series&gt;
  &lt;ChartAreas&gt;
    &lt;ChartArea BackColor=&quot;White&quot; BorderColor=&quot;26, 59, 105&quot; Name=&quot;Default&quot; BorderDashStyle=&quot;Solid&quot; ShadowOffset=&quot;2&quot;&gt;
      &lt;AxisY&gt;
        &lt;MajorGrid LineColor=&quot;Silver&quot; /&gt;
        &lt;MinorGrid LineColor=&quot;Silver&quot; /&gt;
      &lt;/AxisY&gt;
      &lt;AxisX&gt;
        &lt;MajorGrid LineColor=&quot;Silver&quot; /&gt;
        &lt;MinorGrid LineColor=&quot;Silver&quot; /&gt;
      &lt;/AxisX&gt;
      &lt;AxisX2&gt;
        &lt;MajorGrid LineColor=&quot;Silver&quot; /&gt;
        &lt;MinorGrid LineColor=&quot;Silver&quot; /&gt;
      &lt;/AxisX2&gt;
      &lt;AxisY2&gt;
        &lt;MajorGrid LineColor=&quot;Silver&quot; /&gt;
        &lt;MinorGrid LineColor=&quot;Silver&quot; /&gt;
      &lt;/AxisY2&gt;
      &lt;Area3DStyle IsRightAngleAxes=&quot;False&quot; /&gt;
    &lt;/ChartArea&gt;
  &lt;/ChartAreas&gt;
  &lt;BorderSkin BackColor=&quot;CornflowerBlue&quot; BackSecondaryColor=&quot;CornflowerBlue&quot; /&gt;
&lt;/Chart&gt;" DesignerChartTheme="BrightPastel" AlignDataPointsByAxisLabel="False" DataBindingsString="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;
&lt;ArrayOfDataBinding xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; /&gt;" ConnectionPointEnabled="True" ShowDebugInfoRuntime="False" BindToDataDesignMode="True" ShowToolbar="True" RealTimeInterval="0" ChromeType="TitleAndBorder" Description="Helps you to visualize your data on SharePoint sites and portals." ExportMode="All" ImportErrorMessage="Cannot import Chart Web Part." Title="Performance Snapshot" ID="g_dc241115_99a6_48ed_bf84_138ab945d973" __MarkupType="vsattributemarkup" __WebPartId="{A853F079-9863-4CBA-AE46-8AF15FEEC4CD}" WebPart="true" __designer:IsClosed="false" partorder="4"></WpNs0:ChartWebPart>
</asp:Content>


kashif


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>