Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3400902
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:56:58+00:00 2026-05-18T04:56:58+00:00

Hello could you please help me with the following. I have created a scattered

  • 0

Hello could you please help me with the following. I have created a scattered chart and draw a chart from data of a column. The used data is not just after the cell which determines the label:

Column O:

Pwm1   <-- This is the cell I want to see as the label
27114  <-- not used data for graph
27055  <-- etc
27092
27070  <-- data for graph starts here
27105
27024
27092  <-- data for graph ends here

I would like the LABEL cell to appear as the Y column label name (Is now ‘Column O’), but how?
This as far as I got (code is Delphi but if someone could help me with a basic example that’s ok too):

(* Turn the symbol of the data points off *)
oChart.Diagram.SymbolType := _chartChartSymbolTypeNONE;

oDataSeries := oChart.getUsedData;
oDataSequences := oDataSeries.getDataSequences;
ShowMessage(oDataSequences[1].Label.SourceRangeRepresentation);

SourceRangeRepresentation returns the current label, but how to change?

Thanks Ad

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:56:58+00:00Added an answer on May 18, 2026 at 4:56 am

    This did it:

    (*
    creat new DataSequence from range representaion
    that provides real data and its role in the series
    oDataProvider: com.sun.star.chart2.data.XDataProvider
    sRangeRepresentation: range address e.g. Sheet1.A1:B2
    sRole: role is defined in com.sun.star.chart2.data.DataSequenceRole
    *)
    Function CreateDataSequence( oDataProvider : Variant; sRangeRepresentation : String; sRole :String ) : Variant;
    Var
            oDataSequence : Variant;
    
    Begin
     (* create .chart2.data.DataSequence from range representation *)
     oDataSequence := oDataProvider.createDataSequenceByRangeRepresentation(sRangeRepresentation);
     If NOT VarIsEmpty(oDataSequence) Then
      oDataSequence.Role := sRole;
    
     Result := oDataSequence;
    End;
    
    
    oNewLabel := CreateDataSequence(oChart.getDataProvider, '$Sheet1.$O$7', 'label');
    oDataSequences[1].setLabel(oNewLabel);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello could someone please help me with the following: I want to center the
Hello! I have a little problem I was hoping the community could help me
Why the mail function not sending mail to me ,Could any one please help
Please help, it's my studying project. It work locally but not online: Hello, it
Could you please help me with finding a problem in the following code (code
How could I achieve the following: document.all.regTitle.innerHTML = 'Hello World'; Using jQuery where regTitle
i have a string: String value = (name) Says: hello (/name); where name could
If anyone has used WT successfully with MSVC (mine is 2005), could you please
I'm probably doing something wrong, being a newbie. Could you please help me out?
Hello and thanks in advance for your help. I have a treeview that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.