Jump to content
JChartFX Community

Search the Community

Showing results for tags 'firefox'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • jChartFX
    • General Questions
    • jQuery/jQuery UI
    • Styling and Aesthetics

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. The chart renders on IE & Chrome but does not render in firefox. What is wrong? Code: @model ePortfolio.Models.WidgetViewModel @{ Layout = "~/Views/Shared/_WidgetEmptyLayout.cshtml"; } <li class="widget"> <div style="overflow:auto;height:250px;"> <div data-role="navbar" class="widget-head" id="navcontainer"> @Html.DisplayFor(model => model, "WidgetHeader"); </div> <div class="widget-content" id="ChartDiv" style="width:485px;height:250px;display:inline-block"></div> </div> </li> <script type="text/javascript" src="~/Scripts/jquery.min.js"></script> <script type="text/javascript" src="~/Scripts/jChartFx/jchartfx.system.js"></script> <script type="text/javascript" src="~/Scripts/jChartFx/jchartfx.coreVector.js"></script> <script type="text/javascript" src="~/Scripts/jChartFx/jchartfx.coreBasic.js"></script> <script type="text/javascript" src="~/Scripts/jChartFx/jchartfx.advanced.js"></script> @*<script type="text/javascript" src="~/Scripts/jChart/jchartfx.userinterface.js"></script> <link rel="stylesheet" type="text/css" href="~/Content/jChart/jchartfx.userinterface.css" />*@ <link rel="stylesheet" type="text/css" href="~/Stylesheets/jChartfx/Attributes/jchartfx.attributes.css" /> <link rel="stylesheet" type="text/css" href="~/Stylesheets/jChartfx/Palettes/jchartfx.palette.css" /> <script type="text/javascript" language="javascript"> @using System.Web.Script.Serialization; var chart1; function LoadChart() { chart1 = new cfx.Chart(); chart1.setGallery(cfx.Gallery.Pie); chart1.getAllSeries().getPointLabels().setVisible(true); var pieAttr = chart1.getAllSeries().getGalleryAttributes(); pieAttr.setLabelsInside(false); chart1.getAllSeries().getPointLabels().setFormat("%l %p%%"); chart1.getLegendBox().setVisible(false); //var str = @Html.Raw(new JavaScriptSerializer().Serialize(ViewData["Asset Allocations Chart"])); var str = @Html.Raw(Json.Encode(ViewData["Asset Allocations Chart"])); @*$.each(@Html.Raw(Json.Encode(ViewData["Asset Allocations Chart"])), function(i, item){ alert(item.AssetTypeCd + "|" + item.AssetType + "|" + item.EndMarketValue); //chart1.setDataSource(item); });*@ chart1.getAxisY().getDataFormat().setDecimals(2); chart1.getView3D().setEnabled(true); chart1.getAllSeries().getPointLabels().setVisible(true); chart1.setDataSource(str); //var fields = chart1.getDataSourceSettings().getFields(); //var field1 = new cfx.FieldMap(); //field1.setName("AssetType"); //field1.setUsage(cfx.FieldUsage.RowHeading); //fields.add(field1); //var field2 = new cfx.FieldMap(); //field2.setName("EndMarketValue"); //field2.setUsage(cfx.FieldUsage.ColumnHeading); //fields.add(field2); //var crosstab = new cfx.data.CrosstabDataProvider(); //crosstab.setDataSource(str); //chart1.setDataSource(str); //var data = chartStats.getData(); var data = chart1.getData(); data.setSeries(1); //data.setPoints(10); //var labels = chart1.getAxisX().getLabels(); //labels.clear(); //labels.setItem(0, "Cash & Cash Equivalents"); //labels.setItem(1, "Equities"); //labels.setItem(2, "Taxable Fixed Income"); //labels.setItem(3, "Non Taxable Fixed Income"); //labels.setItem(4, "Other Securities"); //var titles = chart1.getTitles(); //var title = new cfx.TitleDockable(); //title.setText("Asset Allocation"); //titles.add(title); //chart1.getAllSeries().getPointLabels().setFormat("%v"); chart1.getAllSeries().getPointLabels().setVisible(true); chart1.getAllSeries().getPointLabels().setAlignment(cfx.StringAlignment.NEAR); chart1.getLegendBox().setVisible(false); chart1.getLegendBox().setWidth(50); chart1.getLegendBox().setDock(cfx.DockArea.Right); chart1.getLegendBox().setContentLayout(cfx.ContentLayout.Near); var divHolder = document.getElementById('ChartDiv'); chart1.create(divHolder); } LoadChart(); </script>
×
×
  • Create New...