Jump to content

Question on using TeeCharts


tcoates

Recommended Posts

I am playing (testing) other charting components and currently looking at TeeCharts (unit uniTeeChart (from 2014?)). I was able to build and install the component into Delphi XE10.1. Then wrote a small test program. I have added screen from a small demo program I wrote. I want to know how to

 

1. only show values 1, 2, 3 (and not 1.5, 2.5, 3.5) on the y-axis

2. remove shadows

3. remove the rounded border from the chart component

4. etc

 

Can someone give some advice how to do this? Thanks in advance.

post-4610-0-08741100-1494821255_thumb.png

Link to comment
Share on other sites

Hi,

 

** 1. only show values 1, 2, 3 (and not 1.5, 2.5, 3.5) on the y-axis

 

As a variant of the solution, you can use this approach for now I think,

 

"UniChart" -> ClientEvents -> ExtEvents -> Ext.chart.Chart [chart] -> function chart.beforerender:

function chart.beforerender(sender, eOpts)
{
    var me=sender.axes.items[0];
    me.majorTickSteps=1;
    me.minimum=0;
}

Best regards,

Link to comment
Share on other sites

adding ext function...

 

function beforerender(sender, eOpts)
{
  var me=sender.axes.items[0];
  me.majorTickSteps=1;
  me.minimum=0;
}

 

gives error d.el is null :(

 

ALSO... shadow is not a property of a UniTeeChart? Is there a more recent version? Or are you doing this via some other method?

Link to comment
Share on other sites

adding ext function...

 

function beforerender(sender, eOpts)

{

  var me=sender.axes.items[0];

  me.majorTickSteps=1;

  me.minimum=0;

}

 

"UniChart" -> ClientEvents -> ExtEvents -> Ext.chart.Chart [chart] -> function chart.beforerender:

function chart.beforerender(sender, eOpts)
{
    var me=sender.axes.items[0];
    me.majorTickSteps=1;
    me.minimum=0;
}
Link to comment
Share on other sites

Using...

 

- Delphi XE10.1

- TeeCharts is version bundled with Delphi XE10.1

- unigui 0.99.96.1341

- uniTeeChart is from link in forums but created in 2014.

 

the events that you refer to is available for TUniChart but NOT TUniTeeChart. see attached image..

 

post-4610-0-69036200-1494833469_thumb.png

Link to comment
Share on other sites

after upgrading to release candidate 1391, I then had to rebuild/install UniGui Teecharts into 10.1.... it appear component palette.

 

the chart can be added to a form. But now when I run the web application I get an EReadError with message 'Error reading UniTeeChart1.Title.Text.Strings: interface not supported"

 

It was working before I upgraded to the release candidate?!?

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...