How to show datavisualization line chart start from 0 and maximum value 50 at Y-Axis in Windows Phone 8? - xaml

I want to display a line series chart using datavisualization in Windows Phone 8, whose Y-axis value always starts from 0 and having maximum range value 50.It means all the times it should display grid lines from 0 to 50 values with interval equals to 5.
I implemented the line chart but the problem i am facing is that suppose Y-axis data value is{10,14,24,31} then chart will default starts from 10 to 35. How to give starting value as 0 and maximum value as 50 for the chart?

Related

add horizontal Line in existing Trend Indicator

I am using the MTrendSqueeze Indicator which is based on a simple moving average value.
I want TradingView to draw a line, once this condition is met:
Barclose divided through current trend indicator value = 50 or less
That means in the example picture it would be:
4,89 / 0.2 = 24,45
It´s less than 50, so draw a line there
MTrend example

CR | Copy data to another row using a formula field or variable

Here is my problem:
Raw data 1
If there is a position 105 and 150, I need the material number of position 150. If there is only position 105, I need the material number of position 105.
On the right side of the picture you can see the correct selected material number.
Now I need to assign this data to position 100 (bc I will use a counter later on, which is depending on position 100).
Here you can see more of the raw data of the report (I can´t insert the complete report here, I use the details area only for testing).
I marked one "group" in which you can see why I can´t change the order of the positions. In this case I need to use position 105 to output the material number (number rightmost on the red border) because there is no position 150.
Raw data 2
Here is another example with position 150 used for the material number (the correct material number will be placed on position 105 every time):
Raw data 3
To use this material number in my following tables, it need to be assigned to position 100.
Thanks!

VB2010 Setting logarithmic scale intervals

I'm developing a financial application in which I need to display data in a chart with a logarithmic scale on the Y axis. Everything works fine except for the intervals. With the following:
chart.ChartAreas(0).AxisY.IsLogarithmic = True
chart.ChartAreas(0).AxisY.LogarithmBase = 10
chart.ChartAreas(0).AxisY.Interval = 1
chart.ChartAreas(0).AxisY.Minimum = CalcMinYVal(minYVal)
I get the CalcMinYVal multiplied by 10^0,10^1,10^2,10^3 and so on for the Y-axis values.
I would like to have the Y axis values increased by 1. How can I have the interval be REALLY 1?
You can enable the MinorGrid property
chart.ChartAreas(0).AxisY.MinorGrid = True
to show the horizontal lines in between the powers of 10 like shown below.
But there is a limitation in showing the value for each subdivision. They can only appear in fixed intervals by using the Interval property of the LabelStyle.
For example to show 10 subdivisions, you can set:
Chart.ChartAreas(0).AxisY.LabelStyle.Interval = 0.1
The number of the horizontal lines of the MinorGrid can be controlled by using its Interval propery:
Chart.ChartAreas(0).AxisY.MinorGrid.Interval = 1
and the values of the labels can be rounded by using the format property:
Chart.ChartAreas(0).AxisY.LabelStyle.Format = "{0.0}"

How to get a while loop once a value exceeds a given value

I want to get my while loop to sound an alarm when the value exceeds 20. To do this I am trying to use a while loop where if the final value exceeds 20 sound an alarm. How do I get my while loop to stop when the random number is >20? Numeric is equal to 2.1 and numeric 2 is equal to 18, this is so it will show values between 18 and 20. My working so far:
Compare whatever it is you want to be checked against a constant of value 20, and wire the output of that to the stop

kendo-ui slider different steps for the first range

I'm using a Kendo-UI slider to allow the user to dynamically select a specific percentage. Selecting 0% makes no sense in my particular application. The problem is that I need the slider to show the ticks on multiple of 10 values (except on the first value/tick). In order to achieve this I need to set the minimum value to 0 and have the large step from 10 to 10:
#(Html.Kendo().Slider()
.Name("sliderPercentage")
.DragHandleTitle("Select")
.Min(0)
.Max(100)
.SmallStep(1)
.LargeStep(10)
.Value(80)
.HtmlAttributes(new { style = "width:500px;" })
)
This however allows the user to select the 0% value which can be confusing. What I really need is a way of setting the minimum value to 1 and the first large step to 9, so that the ticks are shown like this: 1 10 20 30 40 50 60 70 80 90 100. How can I achieve this?