Audiometric chart

4 posts, 0 answers
  1. Luigi Bardetti
    Luigi Bardetti avatar
    12 posts
    Member since:
    Oct 2007

    Posted 18 Jun 2015 Link to this post

    Hello, 

    i need to build an Audiometric chart like this in c# .net 4

    chart

    x values are: 125, 500, 1000, 2000, 4000, 8000 Consider that the series can have intermediate values, example 750, 3000, 6000.

    i suppose that values are logarithmic but I could not find the correct values.

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 18 Jun 2015 Link to this post

    Hi,

    You can use scatter line series with a logarithmic axis.


    Regards,
    Danail Vasilev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Luigi Bardetti
    Luigi Bardetti avatar
    12 posts
    Member since:
    Oct 2007

    Posted 18 Jun 2015 in reply to Danail Vasilev Link to this post

    logarithmic axis with which base?

    consider that i want to show only these values in x Axis 125, 500, 1000, 2000, 4000, 8000

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 22 Jun 2015 Link to this post

    Hello Luigi,

    If you can find a logarithm base that will provide these numbers, setting it to the chart should work. I am not sure, however, that such a value exists.

    Thus, I can suggest using a category series and setting the x-axis values yourself. This will remove the grid lines that indicate that the scale is logarithmic, but I do not see them in your original example either. Here is a basic example:

    <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="800px" Height="500px">
        <PlotArea>
            <XAxis>
                <TitleAppearance Text="Frequency (Hz)"></TitleAppearance>
                <Items>
                    <telerik:AxisItem LabelText="125" />
                    <telerik:AxisItem LabelText="500" />
                    <telerik:AxisItem LabelText="1000" />
                    <telerik:AxisItem LabelText="2000" />
                    <telerik:AxisItem LabelText="4000" />
                    <telerik:AxisItem LabelText="8000" />
                </Items>
            </XAxis>
            <YAxis Reversed="true" AxisCrossingValue="999999">
                <TitleAppearance Text="Intensity (dB)"></TitleAppearance>
            </YAxis>
            <Series>
                <telerik:LineSeries Name="firstSeries">
                    <Items>
                        <telerik:SeriesItem YValue="10"/>
                        <telerik:SeriesItem YValue="10"/>
                        <telerik:SeriesItem YValue="10"/>
                        <telerik:SeriesItem YValue="80"/>
                        <telerik:SeriesItem YValue="15"/>
                        <telerik:SeriesItem YValue="20"/>
                    </Items>
                </telerik:LineSeries>
            </Series>
        </PlotArea>
    </telerik:RadHtmlChart>


    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top