Jump to content
Software FX Community

sheng

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by sheng

  1. I'm using financial extension to graph some stock data. I found that the default tooltip doesn't show the date. So I had to set the ToolTipFormat myself. Here is my code: Chart1.ToolTipFormat = "Date: %x \nOpen: %v2\nHigh: %v4 - Low: %v1\nClose: %v3"; After that, the display of the tooltip is: "Date: 01/30/2008 Open: 1.2 High: 2.0 - Low: 1.1 Close: 1.6" which is good. However, the ToolTipFormat applies to everything including custom studies, technical indicators(SimpleMovingAverage, MACD, etc. ). They all display something like this:"Date: 01/30/2008 Open:" So how do I set the tooltipFormat to make it only applies to the main series? Thanks a lot.
  2. Is there a way to show dates in X axis for decades like 1970 1980 1990 2000 instead of something like 1974 1983 1992 2001? Thanks a lot.
  3. I'm using financial extension. The tooltip shows the open, high, low, close value but no date is shown. How do I add the date to the tooltip? I tried ToolTipFormat, but I can't get open, high, low, close value using Format. Please help. Thanks
  4. I have the same problem. It seems that ChartFX can't save viewState when it's in an updatepanel. Can anyone help?
  5. I'm using the chart1.Data.Compact() with a drop down list to compact my data. The data will get compact the first time I select a frequency (for example: weekly). However, it will show a "Object reference not set to an instance of an object." error when I select another frequency. Could some body help me please? Here is my code: <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem Selected="True">Daily</asp:ListItem> <asp:ListItem>Weekly</asp:ListItem> <asp:ListItem>Monthly</asp:ListItem> </asp:DropDownList><uc1:Charts ID="chart1" runat="server" /> private void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { switch (DropDownList1.Text) { case "Daily": chart1.Data.Compact(1); break; case "Weekly": chart1.Data.Compact(7); break; case "15-days": chart1.Data.Compact(15); break; case "Monthly": chart1.Data.Compact(30); break; case "Yearly": chart1.Data.Compact(365); break; } }
×
×
  • Create New...