Results 1 to 3 of 3

Thread: MSChart

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    MSChart AxtiveX Control

    I am looking through MSDN, but I'm not finding a way to set the range of an axis. I am charting percentages in 2D line chart, and when they are all above 95%, why do I need to show 0-100, when 90-100 will give much better resolution.

    Any idea on how to set the range?
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Here it is


    Code:
    Private Sub Command1_Click()
      ' Set chart type to 2d bar
        Form1.MSChart1.chartType = VtChChartType2dBar
    
        ' Use manual scale to display y axis (value axis)
        With Form1.MSChart1.Plot.Axis(VtChAxisIdY).ValueScale
         .Auto = False
         .Minimum = -100
         .Maximum = 100
        End With
    End Sub

    DocZaf
    {;->

    That info is from ms
    http://support.microsoft.com/support.../Q189/1/59.ASP

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    Thank you

    Plot axis value scale, none of which is listed where I was looking.

    http://msdn.microsoft.com/library/de...rtObject_P.htm

    Thank you very much.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width