Hide Data points (2nd child) & Center Legends

Chart Type - Column Combination Dual Axis
2 measures (line) in one axis and another KF (bar) is in the other axis.
I could hide Data points for one of the line measure using the below CSS code;
g.v-m-main g.v-m-plot g.v-axis1 g.v-marker:nth-child(1).v-datapoint.v-morphable-datapoint {visibility:hidden;}
Help 1:
Why the below code is not working for 2nd child?
g.v-m-main g.v-m-plot g.v-axis1 g.v-marker:nth-child(2).v-datapoint.v-morphable-datapoint {visibility:hidden;}
Help 2:
Please provide CSS to center Chart Legends. If there is a way to sequence Legend order, please provide that aswell.
Will be of great help, if anyone could assist me on these.
Thank you for the support
VeeKay

Hi,
Regarding your first question - the following css should help you to hide the points (...use visibility:hidden instead of fill:red):
/* Chart Type: Line ; with 2 measures */
.v-axis1 .v-marker:nth-child(1) .v-datashape:nth-child(2n) .v-datapoint {/*visibility: hidden;*/ fill: red;}
.v-axis1 .v-marker:nth-child(2) .v-datashape:nth-child(2n+1) .v-datapoint {/*visibility: hidden;*/ fill: red;}
/* Chart Type: Line - Dual Axis ; with 2 measures */
.v-axis1 .v-marker .v-datashape:nth-child(2n) .v-datapoint {/*visibility: hidden;*/ fill: red;}
.v-axis2 .v-marker .v-datashape:nth-child(2n+1) .v-datapoint {/*visibility: hidden;*/ fill: red;}
To hide all points:
/* Hide all points */
.v-axis1 .v-datapoint {visibility: hidden;}
.v-axis2 .v-datapoint {visibility: hidden;}
Regarding your second question: I don't know about any css possibility to change the alignment or order of legend items. You could probably achieve that with javascript, but would have to in general use the SDK for it to create an extension.
Regards,
David

Similar Messages

  • How to remove values data points from Apex3 Flash Chart

    Hi
    I am using a Apex 3.2 and I have to put Flash Charts in my application. But since the charts have are smaller in size, I do not want to have the data points coming up in the chart. I have planned to show them using hints. But unfortunately, I am not able to hide the Data Points. Can you please help. Thanks Sahcin. Here is my custom XML.
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <root>
         <type>
              <chart type="Stacked Horizontal 2DColumn">
                   <animation enabled="no"/>
                   <hints enabled='yes' auto_size='no' width='200' height='20' horizontal_position='left' vertical_position='top'>
                        <text><![CDATA[{NAME}, {VALUE}]]></text>
                        <font type="Verdana" size="10" color="black"/>
                        <background color="0xF4F4F4"/>
                   </hints>
                   <arguments show="no"/>
                   <names show='yes' position='top'/>
                   <values show="no" prefix="$" postfix="" decimal_separator="." thousand_separator=',' decimal_places="2"/>
                   <column_chart column_space='20' block_space='20' left_space='0' right_space='0' up_space='0' down_space='0' round_radius='0'>
                        <border enabled="no"/>
                        <block_names enabled="yes" placement="chart" rotation="45" x_offset="0" position="left">
                             <font type="verdana_embed_tf" size="8" color="0x000000"/>
                        </block_names>
                        <background type="gradient" gradient_type="linear">
                             <alphas>
                                  <alpha>100</alpha>
                                  <alpha>100</alpha>
                                  <alpha>100</alpha>
                             </alphas>
                             <ratios>
                                  <ratio>0</ratio>
                                  <ratio>120</ratio>
                                  <ratio>0xFF</ratio>
                             </ratios>
                        </background>
                   </column_chart>
              </chart>
              <workspace>
                   <background enabled="yes" type="solid" color="0xF4F4F4" alpha="0"/>
                   <base_area enabled="no"/>
                   <chart_area enabled="yes" x="100" y="50" width="600" height="300" deep="0">
                        <background enabled="yes" type="solid" color="0xCCFF99"/>
                        <border enabled="yes" size="1"/>
                   </chart_area>
                   <x_axis name="Region" smart="yes" position="left_center">
                        <font type="Verdana" size="10" color="0x000000" bold="no" align="center"/>
                   </x_axis>
                   <y_axis name="Booking Amount (kUSD)" smart="yes" position="center_bottom">
                        <font type="Verdana" size="10" color="0x000000" bold="no" align="center"/>
                   </y_axis>
                   <grid>
                        <values>
                             <lines size='1' color='0x15771A' alpha='100'/>
                        </values>
                   </grid>
              </workspace>
              <legend enabled="yes" x="0" y="0" rows="2" rows_auto_count="no">
                   <names width='80' enabled='yes'/>
              </legend>
         </type>
         #DATA#
    </root>Edited by: user779712 on Nov 3, 2009 4:45 PM
    Edited by: user779712 on Nov 3, 2009 4:46 PM

    Well going in point by point and deleting is certainly one way of going about it. Of course that would defeat the entire purpose of having this great programming enviroment that is capable of doing that kind of thing for us.
    Is your text file small enough to upload? Obviously you know what the criteria are for judging whether or not a data point is acceptable so it should be simple enough to program. Give us a bit more information and I can assure you there will be a race between LabVIEW experts to see who can post the cleanest, simplest, and fastest piece of code that will do what you need. My wager is on altenbach, but there are a few others here that are almost as impressive.

  • Stacked 100% bar chart - Problem with datatips for zero value data points

    I have a stacked 100% bar chart that shows datatips in Flex 4.   However, I don't want it to show datatips for
    data points with zero values.   Flex 4 shows the datatip for a zero value data point on the left side of a bar if the data point is not the first in the series.
    Here's the code that illustrates this problem.    Of particular concern is the July bar.    Because of the zero value data point problem, it's not possible to see the datatip for "aaa".
    Any ideas on how we can hide/remove the datatips for zero value data points ?        Thanks.
    <?xml version="1.0"?>
    <s:Application
    xmlns:fx="
    http://ns.adobe.com/mxml/2009"xmlns:mx="
    library://ns.adobe.com/flex/mx"xmlns:s="
    library://ns.adobe.com/flex/spark"creationComplete="initApp()"
    height="
    1050" width="600">
    <s:layout>
    <s:VerticalLayout/>
    </s:layout>
    <fx:Script><![CDATA[ 
    import mx.collections.ArrayCollection;[
    Bindable] 
    private var yearlyData:ArrayCollection = new ArrayCollection([{month:
    "Aug", a:1, b:10, c:1, d:10, e:0},{month:
    "July", a:1, b:10, c:10, d:10, e:0},{month:
    "June", a:10, b:10, c:10, d:10, e:0},{month:
    "May", a:10, b:10, c:10, d:0, e:10},{month:
    "April", a:10, b:10, c:0, d:10, e:10},{month:
    "March", a:10, b:0, c:10, d:10, e:10},{month:
    "February", a:0, b:10, c:10, d:10, e:10},{month:
    "January", a:10, b:10, c:10, d:10, e:10}]);
    private function initApp():void {}
    ]]>
    </fx:Script>
    <s:Panel title="Stacked Bar Chart - Problems with DataTips for Zero Value Items" id="panel1">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <mx:BarChart id="myChart" type="stacked"dataProvider="
    {yearlyData}" showDataTips="true">
    <mx:verticalAxis>
     <mx:CategoryAxis categoryField="month"/>
     </mx:verticalAxis>
     <mx:series>
     <mx:BarSeries
    xField="a"displayName="
    aaa"/>
     <mx:BarSeries
    xField="b"displayName="
    bbb"/>
     <mx:BarSeries
    xField="c"displayName="
    ccc"/>
     <mx:BarSeries
    xField="d"displayName="
    ddd"/>
     <mx:BarSeries
    xField="e"displayName="
    eee"/>
     </mx:series>
     </mx:BarChart>
     <mx:Legend dataProvider="{myChart}"/>
     </s:Panel>
     <s:RichText width="700">
     <s:br></s:br>
     <s:p fontWeight="bold">The problem:</s:p>
     <s:p>Datatips for zero value data points appear on left side of bar (if data point is not the first point in series).</s:p>
     <s:br></s:br>
     <s:p fontWeight="bold">For example:</s:p>
     <s:p>1) For "June", eee = 0, mouse over the left side of the bar to see a datatip for "eee". Not good.</s:p>
     <s:br></s:br>
     <s:p>2) For "July", eee = 0 and aaa = 1, can't see the datatip for "aaa", instead "eee" shows. Real bad.</s:p>
     <s:br></s:br>
     <s:p>3) For "Feb", aaa = 0, datatip for "aaa" (first point) does not show. This is good.</s:p>
     <s:br></s:br>
     <s:p>4) For "Mar", bbb = 0, datatip for "bbb" shows on the left side of the bar. Not good.</s:p>
     <s:br></s:br>
     <s:p fontWeight="bold">Challenge:</s:p>
     <s:p>How can we hide/remove datatips for zero value data points?</s:p>
     <s:br></s:br>
     </s:RichText></s:Application>

    FYI.
    Still have the issue after upgrading to the latest Flex Builder 4.0.1 with SDK 4.1.0 build 16076.   
    Posted this as a bug in the Adobe Flex Bug and Issue Management system.     JIRA
    http://bugs.adobe.com/jira/browse/FLEXDMV-2478
    Which is a clone of a similar issue with Flex 3 ...
    http://bugs.adobe.com/jira/browse/FLEXDMV-1984

  • How can I label data points in a scatter chart with text strings?

    Post Author: Bill B
    CA Forum: Charts and Graphs
    I need to create a Scatter Chart, with a text label for each data point instead of the xy coordinates. A legend will no longer be necessary.Also, I want to draw "cross-hair" lines on both the x and y axes centered on one particular data point.Any ideas?

    Post Author: ebobo
    CA Forum: Charts and Graphs
    Hi
    I have the same problem here, did you find any solutions.
    Here we are ok if the dimension is displayed in the scatter instead of the measurements but the only options i founds was "Show data" and that option displays the values of the xy.
    pls let me know if anybody found any solution for this problem

  • How to include the 1st data point date time in x

    Hi,
    I use a formular in the Interval from "Axis range and interval"
    =IIF(COUNT(Fields!Date_Reading.value, "DataSet1") <=48 ,1 , 12)
    However, it always missed the 1st data point date/time, please advise on how to include it always ... !
    Thanks !

    Hi kkcci8888,
    Per my understanding that when you using the expression in the Interval you can't see the first date display in the label, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by the setting of the Interval. I assumed the 1st data point date time which haven't display means the minimum date in the report.
    If you have specify an kind of "Interval Type", the first date not display as the label, if you keep the "Interval Type" as "Default", you will get it display correctly.
    I recommend you to do the setting as below to get it display correctly:
    Go to Horizontal Axis Properties
    In Axis Options, Select the Axis Type as Scalar.
    Deselect "Always include zero".
    In Minimum box type [First(Sale_Date)]
    note: make sure you have use the order by Sale_Date in the query to order the date already.
    keep the "Interval Type" as "Default", the default means "Days", try to modify the expression to specify an new value of the Interval and the type will be "Days" by default.
    Click "Labels" on the left pane to check you  haven't select the "Hide first and last labels along with this axis":
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Transaction data from one cost center to another cost center

    Hi All
    Can any one tel me how to move the Transaction data from one cost center to another cost center .
    My scenario is basically : Users posted for  company code 1003 for Cost center S00570 for the period 01.04.2007  to 30.11.2007 but it has to go to company code 1000  instead of 1003  for the same Cost center .S00570 .
    What we have done is that we have changed the cost center from 01.12.2007 on words to the correct company code 1000 and now all postings are going to the right company code ie
    to company code 1000.
    Now the problem is how to bring back the old historical data posted  from 01.04.2007 to 30.11.2007  to wrong company code the 1003 to correct company code  1000 .
    Is there a way to bring back the historical data which has posted to wrong company code .
    Thanks in Advance .
    Any help highly appreciated and points are assigned .
    Cheers
    Ravindra.

    Ravindra
    Once you have changed the company code in the master data, then the entries with respect to the different company code cannot be transferred. Please follow the process below and let me know if it works.
    1. Revert the cost center master data to the original company code.
    2. Repost the line items from this cost center to another cost center. Use tcode KB61. The cost center you will be reposting will be a routing cost center (say XXXXX).
    3. Once all the line items have been reposted, change the master data of the cost center to the correct company code.
    4. Again repost the costs from the routing cost center(XXXXX) to the correct cost center. You should have all the line items to the correct cost center now.
    For more on reposting refer the link below:
    http://help.sap.com/SAPHELP_470/Helpdata/EN/27/c98a46db7011d1a5400060086e9494/frameset.htm
    Let me know if it worked.
    Karthik Coneru

  • Formatting dvt:linegraph data points

    My graph displays the value of the data point when you hover over the line. The date displays fine, but the value has too many decimal points.
    For example
    Group Count : 3.000
    or
    Group Count : 0.000
    Since this value is whole numbers only, this doesn't make sense. I've set the UI hints in the View object for that column to
    GipCount_FMT_FORMATTER=oracle.jbo.format.DefaultNumberFormatter
    GipCount_FMT_FORMAT=\#\#\#\#but it is still displaying that. Is there a different format mask I should use to hide the decimals? or a setting I have not found to control the output on the data points?
    Thanks
    (this is not a duplicate post, I considered asking this with my other question but figured it was different enough to warrant its own)

    hi ,
    any help??...:(

  • Graphing data of different data point amounts I get errors

    I'm using Labview 7.1 and I'm graphing a group of data sets on a single graph display.
    These data sets have different numbers of total points and the sets with a less number of points wind up going back to the origin (0,0).
    This seems to be due to where they stop in data points labview fills in the vacancy with a 0,0.
    The result is (other than addiing erroneous data points) is the scaling is way off because I'm not near the origin.
    How can I( get round this problem?
    Thank you,
    Philip

    Your code seems to be highly flawed. Does it even work at all?
    Some comments.
    If you load more than one data file, the data from the files read in the previous iteration gets lost. You'll only get the set that you read last. (for example, the 2D array output from case "=0" will be empty at all later iterations. That's why you get all these zeroes!
    Why do you need to do all the array extraction and manipulation at every while loop iteration. Everything prior to the division by the FP control belongs outside the while loop.
    "Array subset" is better than "delete from array".
    The while loop spins at infinite rate calculating the same old stuff over and over again, millions of times/second. Use an event structure so it recalculates exactly once whenever the control changes.
    All the Array manipulation is done identically in four different places, you only need that code once in a loop, you can even do it right in the FOR loop when you read the data.
    The label.text properties need to be written exactly once, ouside the loop.
    You don't need to connect an indicator to the slide. Just right-click on the slide and do "show..digital display".
    You don't need a stacked sequence. It only hides code and forces backwards wires, making the code hard to debug.
    You don't need to transpose following by gettting a row. Just get a column instead!
    Attached is a quick attempt at some simplification according to my comments above. I cannot test it so it probably needs a few tweaks here and there. Still, it should give you some ideas.  Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Read_from_Text_File_chirpTemp_thingMOD.vi ‏192 KB

  • UR/MR Redemption Value, Data Points please!

    While considering the merits of a CSP or EDP card, we are often faced with an "average cpp" for each point system.  The general consensus is that a UR point is worth 2.4 cpp while an MR point is worth 1.8 cpp.  I am hoping that people with experience with each program can enlighten me on the method of calculation of a point.  When calculating your average cpp (cents per point), do you calculate it against the FULL PRICE ticket quoted by the airline, or do you peruse sites like Hotwire, Kayak, Skiplagged, Orbitz, etc. and calculate the cost of your flight using the cost in points vs the price on a common travel site? Consider this scenario: You are looking to book a one-way, domestic flight on your favorite airline.  United quotes you at $300, but you have the option to purchase with 15,000 points.  However, Orbitz has the same flight for $200, plus Discover deals gives you 10% back, bringing the total cost of your flight down to $180. The question I'm posing is: when cashing in your points would is this a realistic scenario, or do airlines generally charge similar prices to travel sites?  Would you consider the points to be valued at 2 cpp in this scenario or would you consider the points to be valued at 1.2 cpp?  From what I can tell, travel sites are generally significantly cheaper than purchasing directly from the airline (or else it wouldn't make sense to that there would be so many).  Therefore, if the valuation of your points doesn't take into account travel sites, their value would seem to be inflated to some degree.   FWIW, I'm not at the point in my life where I travel a whole lot.  I'm doing research for the future.

    Hello dskp,
    As your in Cartesian display, if you know the abscissa or the ordinate, you could easily found your points using a for loop with your data points indexed in input and a comparison function.
    Please be more specific if you need an example.
    Best regards.

  • Add Tooltip to Data Point

    Hi,
    I was wondering is it possible to add a Tooltip containing text (not the (X,Y) values) to a datapoint. I'm using VS2010.

    This example uses a structure to associate a text string with each data point.
    Imports System.Windows.Forms.DataVisualization.Charting
    Public Class Form2
    Structure myData
    Public y As Single
    Public text As String
    End Structure
    Private MyDataList As New List(Of myData)
    Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim d As myData
    For i = 1 To 12
    d.y = 5 * Math.Sin(i / 2)
    d.text = "Text Data: " & i.ToString
    MyDataList.Add(d)
    Next
    Label1.Text = "Select a Point"
    'setup the chart
    With Chart1.ChartAreas(0)
    .AxisX.Title = "Time"
    .AxisX.MajorGrid.LineColor = Color.LightBlue
    .AxisX.Minimum = 0
    .AxisX.Maximum = 14
    .AxisX.Interval = 2
    .AxisX.LabelStyle.IsEndLabelVisible = False
    .AxisY.Title = "Value"
    .AxisY.MajorGrid.LineColor = Color.LightGray
    .AxisY.Minimum = -6
    .AxisY.Maximum = 6
    .AxisY.Interval = 2
    .BackColor = Color.AntiqueWhite
    .BackSecondaryColor = Color.White
    .BackGradientStyle = GradientStyle.HorizontalCenter
    .BorderColor = Color.Blue
    .BorderDashStyle = ChartDashStyle.Solid
    .BorderWidth = 1
    .ShadowOffset = 2
    End With
    Chart1.Series.Clear()
    Chart1.Series.Add("Monthy Data")
    With Chart1.Series(0)
    .ChartType = DataVisualization.Charting.SeriesChartType.Line
    .BorderWidth = 2
    .Color = Color.Blue
    .MarkerStyle = DataVisualization.Charting.MarkerStyle.Circle
    .MarkerSize = 8
    .IsVisibleInLegend = False
    For m = 1 To 12
    .Points.AddXY(m, MyDataList(m - 1).y)
    Next
    End With
    End Sub
    Private Sub Chart1_MouseDown(sender As Object, e As MouseEventArgs) Handles Chart1.MouseDown
    Dim result As HitTestResult = Chart1.HitTest(e.X, e.Y)
    If result.ChartElementType = ChartElementType.DataPoint Then
    Chart1.Series(0).Points(result.PointIndex).XValue.ToString()
    Label1.Text = MyDataList(result.PointIndex).text
    Else
    If result.ChartElementType <> ChartElementType.Nothing Then
    Dim elementType As String = result.ChartElementType.ToString()
    Label1.Text = "Selected Element is: " & elementType
    End If
    End If
    End Sub
    Private Sub Chart1_MouseMove(sender As Object, e As MouseEventArgs) Handles Chart1.MouseMove
    Dim result As HitTestResult = Chart1.HitTest(e.X, e.Y)
    ' If a Data Point or a Legend item is selected.
    If result.ChartElementType = ChartElementType.DataPoint Or result.ChartElementType = ChartElementType.LegendItem Then
    ' Set cursor type
    Me.Cursor = Cursors.Hand
    Else
    If result.ChartElementType <> ChartElementType.Nothing And result.ChartElementType <> ChartElementType.PlottingArea Then
    ' Set cursor type
    Me.Cursor = Cursors.Hand
    Else
    ' Set default cursor
    Me.Cursor = Cursors.Default
    End If
    End If
    End Sub
    End Class

  • Data point in area chart

    Hello,
    I have an area chart where month from Jan to Dec is displayed in x-axis and values are on y-axis. When user hover over first data point which should be jan, it dispalys Feb. Jan data point is not dispalying in hover over. Also area chart does not start from
    (0,0) coordinate. There is the s0me gap in x-axis and then Jan starts.
    Can you help please?

    Hi 1234alex,
    Per my understanding that you have design an area chart but the first data point which show the Jan didn't show but start with Feb, right?
    I have tested on my local environment and can reproduce the issue, the issue can be caused by you have set the "hide first and last labels along this axis" in the "Horizontal Axis Properties".
    Details informaion below for your reference:
    Right click the X chart axis and select the "Horizontal Axis Properties" and click the "Labels" on the left to check you haven't check the "hide first and last labels along this axis"
    If you haven't check it but still can't see the Jan shown, please check the sorting expression(If you have added to order the month in the x-axis, please provide it) to see if it is correct.
    I have add some sample data below and create area chart and also area chart combined with line chart, preview result as below, works fine:
    If your problem still exists, please try yo provide some sample data of the table and also the snapshot of the chart, if you have using some expression or setting, please also provide them.
    Any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Need charting help - multiple data points between major ticks

    Hi,
    I am trying to create an AreaChart in which the data shows a
    consumption rate over the course of a week. The major points along
    the x-axis will be Monday, Tuesday, ... , Sunday (the days of the
    week). However, there are multiple data points between each day. I
    only want the days of the week to show on the axis but I want to
    plot all of the data points. How would I go about accomplishing
    this task?
    Thanks in advance,
    Brent Schooley

    Thanks, it is getting closer now. My only problem now is that
    the data points do not line up correctly with the tick marks. I've
    look through the documentation and I can't figure out what to do to
    ensure this happens. Here are the relevant portions of my code:
    [Bindable]
    public var energyDataAC:ArrayCollection = new
    ArrayCollection( [
    {date: "2007, 7, 27, 0", saved: 0},
    {date: "2007, 7, 27, 12", saved: 50},
    {date: "2007, 7, 28, 0", saved: 35},
    {date: "2007, 7, 28, 12", saved: 0},
    {date: "2007, 7, 29, 0", saved: 0},
    {date: "2007, 7, 29, 12", saved: 46},
    {date: "2007, 7, 30, 0", saved: 39},
    {date: "2007, 7, 30, 12", saved: 0},
    {date: "2007, 7, 31, 0", saved: 0},
    {date: "2007, 7, 31, 12", saved: 44},
    {date: "2007, 8, 1, 0", saved: 45},
    {date: "2007, 8, 1, 12", saved: 0} ]);
    public function myParseFunction(s:String):Date {
    // Get an array of Strings from the comma-separated String
    passed in.
    var a:Array = s.split(",");
    // Create the new Date object.
    var newDate:Date = new Date(a[0],a[1],a[2],a[3]);
    return newDate;
    <mx:AreaChart id="Areachart" height="100%" width="100%"
    paddingLeft="5" paddingRight="5"
    showDataTips="true" dataProvider="{energyDataAC}" >
    <mx:horizontalAxisRenderer>
    <mx:AxisRenderer styleName="myAxisStyle"/>
    </mx:horizontalAxisRenderer>
    <mx:horizontalAxis>
    <mx:DateTimeAxis alignLabelsToUnits="true"
    dataUnits="hours" labelUnits="days" dataInterval="12" interval="1"
    parseFunction="myParseFunction"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:AreaSeries yField="saved" xField="date"
    form="segment" displayName="Energy Saved"/>
    </mx:series>
    </mx:AreaChart>
    <mx:Legend dataProvider="{Areachart}"/>
    Any ideas?
    Thanks,
    Brent

  • How to update multi-handle graph with a new set of data points

    I have multiple sets of data that all have the same number of columns but different numbers of rows. Each column is plotted on a graph. I want to keep the format of the original graph with the same number of handles, and update each handle with new data points by bringing in a new set of points.
    See attachment for example.
    Attachments:
    hiqgraph.HiQ ‏14 KB

    There are several ways to do this.
    1. You can create a HiQ script that plots the new data to the graph using the existing plots. The following three lines plot the new data into the three existing plots (indicated by the plot handles.) Put these lines into a HiQ script object, right-click and select Run.
    addplot(Graph2D_1,-1,data2[*,1],data2[*,2]);
    addplot(Graph2D_1,-2,data2[*,1],data2[*,3]);
    addplot(Graph2D_1,-3,data2[*,1],data2[*,4]);
    2. You can do it interactively by right-clicking on the individual plots and choosing Change... This will being up a dialog you can use to change the data in that plot. This will be difficult to do when plots are right on top of each other, so you may want to display the plot legend, where you can also right-click a
    nd select Change...
    3. I like your idea about DataSocket. This way it will happen automatically. Whenever the matrix published to DataSocket changes, the plot should automatically update.
    I hope this helps.
    David

  • Extract data point from dynamic data based on time index

    My goal here is to find out what the frequency of pulses from object B is given an input to object A, and not only that, but what the frequency is at a particular moment in time.
    While in this example, the DAQ Assistant reads the data and will show it nicely on a time-indexed graph, the convoluted mess above is the only solution I have thus come up with to extract a specific item from that set of data. I was/am hoping there is a more elegant solution. However, I can confirm via other sources that the data from the DAQ Assistant is incorrect, possibly/probably because the DAQ units being used are on different chassis, using different counters (I've got to work with what I've got available) and won't cooperate in the same while loop.
    In this example, the data being read is correct, I cannot display the result on a graph (nothing shows up, but the autoscale of the Y axis seems to work), and the VI occasionally (but not always) ends on an Error -200474: Timeout (with the signal no longer being sent to object A, I don't expect any pulses from object B). I would like to have both the graph and the value (data point) at time index, like I was getting in example one, but the correct data, as I was getting in example two.
    Code for both examples is attached.
    Attachments:
    sample.vi ‏105 KB
    sample2.vi ‏106 KB

    In this example, the data being read is correct, I cannot display the result on a graph (nothing shows up, but the autoscale of the Y axis seems to work)
    Check out the acquisition mode of DAQ assistant,  Its configured to 1sample (on demand) which means that graph is plotting only 1 sample (only 1 data point) which you are unable to see.  Modify the settings to acquire greater samples so that a plot can be seen on the graph or use chart to plot the points which has history with it.
    The terminology "object A and B" that is used is not clear and what it is pointing to (while loop or the images itself).
    The second figure there is a data dependancy between 2nd while and 1st while loop.  Try using standard LabVIEW Design patterns
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

Maybe you are looking for