Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы API iRidi Line Chart. Перевод выполнен на 100%.

    Other languages:
    English • ‎русский
  • Справочник
  • Line Chart
  • Содержание

    • 1 API iRidium. Line Chart
    • 2 Example
    • 3 Line Chart Object Methods
      • 3.1 .SetScaleType(type)
      • 3.2 .SetValueLimits(min, max)
      • 3.3 .ShiftOnPixels(count, speed)
      • 3.4 .Reset()
    • 4 Свойства объекта
      • 4.1 .Live
      • 4.2 .Range

    API iRidium. Line Chart

    Line Chart is a graph of variable changes where dots - variable changes are connected with a line. Changes of several values can be displayed on a graph.

    The documentation was updated on 09.11.2024

    The function is available from 1.3.70 version


    Line Chart is a graph of variable changes where dots - variable changes are connected with a line. Changes of several values can be displayed on a graph.

    The chart displays values ​​from the iRidium server database. Some Line Chart parameters are available for modification in the script.


    Example


    Download the example

    Line Chart functions work with two projects: for the server (.sirpz file) and for a panel (.irpz file). The server gets a tag value and stores it in its database. A panel asks the server for data in a required time range and then displays them as a trend on the screen. Trend appearance is controlled in the script of a panel project (.irpz).

    For projects to start successfully upload a server project to a real controller or a PC with launched iRidium server via iRidium transfer. A panel project can be uploaded to a real device or can be launched in the Emulator. Before launching a panel project set in it the correct IP address of the server:

    API iRidi Line Chart01.png

    Line Chart Object Methods

    .SetScaleType(type)

    requests data for a time range depending on the type - DAY, WEEK, MONTH

    On input Value Description
    type IR.TREND_SCALE_DAY type: number,
    requests data for the requested period
    Trend.SetScaleType(IR.TREND_SCALE_DAY); //.SetScaleType(type) - Set scale type (day)
    IR.Log(Trend.Range);

    .SetValueLimits(min, max)

    sets the maximum and minimum values ​​to display on the Y axis

    On input Value Description
    min, max 20, 100 type: number,
    scales the data axis
    IR.GetItem("Page 1").GetItem("Item 2").SetValueLimits(20, 100); // обращение через GetItem("Item_Name")

    It makes sense only when auto-scaling is disabled

    .ShiftOnPixels(count, speed)

    scrolls by the number of pixels. If count is positive - to the right, if negative - to the left; speed - scrolling speed in pixels >=0; If 0 - sharp movement, without smooth scrolling.

    On input Value Description
    count, speed -1000, 100 type: number,
    shifts the viewed area of ​​the graph by the specified number of pixels at the specified speed
    Trend.ShiftOnPixels(-1000, 100) //.ShiftOnPixels(count, speed) - swipe by the number of pixels. If count is positive - to the right, if count is negative - to the left; speed - speed of flipping in pixels >=0; If 0 - sharp movement, without smooth flipping.

    .Reset()

    resets the OX axis range to its original settings

    Trend.Reset(); //.Reset() - reset to initial settings (Studio preset)


    Свойства объекта

    .Live

    whether the trend is dynamic ("live"); Both reading and writing

    .Live 1 type: number,
    sends a value of 1 if the rightmost point of the chart is in real time; sends a value of 0 if the viewing area is shifted to the chart history view
    IR.GetPage("Page 1").GetItem("Item 3").Value = Trend.Live //.Live - dynamic trend ("live"); And read and write

    .Range

    range in iridi time. Reading and writing

    .Range 0.04499999999825377 type: number,
    sets the range
    Trend.Range = 0.045; //.Range - range (in iridium time); Both read and write
    Источник — «https://dev.iridi.com/index.php?title=API_iRidi_Line_Chart/en&oldid=143957»
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy