Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Sencha Charts Essentials

You're reading from   Sencha Charts Essentials Create stunning charts and visualizations for both web and mobile applications

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781785289767
Length 214 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Ajit Kumar Ajit Kumar
Author Profile Icon Ajit Kumar
Ajit Kumar
Arrow right icon
View More author details
Toc

Using built-in interactions


Here is a list of the built-in interactions:

  • Crosshair: This interaction helps the user to get precise x and y values for a specific point on a chart. Because of this, it is applicable to cartesian charts only. The x and y values are obtained by single-touch dragging on the chart.

    The interaction also offers additional configs:

    • axes: This can be used to provide label text and label rectangle configs on a per axis basis using left, right, top, and bottom configs or a single config applying to all the axes. If the axes config is not specified, the axis label value is shown as the text and the rectangle will be filled with white color.

    • lines: The interaction draws horizontal and vertical lines through the point on the chart. Line sprite attributes can be passed using horizontal or vertical configs.

      For example, we configure the following crosshair interaction on a CandleStick chart:

      interactions: [{
           type: 'crosshair',
           axes: {
               left: {
                  ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image