GithubHelp home page GithubHelp logo

openchart's Introduction

OpenChart

OpenChart is an open source Chart widget for Qt โ™ฅ

How to use?

Download this project, and unzipp it, open " openCharts.pro " file into qtCreator

change Build mode to Release and click on Run button to compile

when you finish, create new folders and copy "openchartplugin.dll" and All Headers File in this structure:

    OpenChart (folder)
      lib (folder)
      • openchartplugin.dll
      include (folder)
      • global_header.h
      • openchartplugin.h
      • openchart.h
      • qchartpiece.h

      that's all :)

      now to use this library in your project, go to .pro file and add this lines :

      INCLUDEPATH += "Your_Path/OpenChart/include"
      LIBS += -L"Your_Path/OpenChart/lib"
      LIBS += -lopenchartplugin
      

      where Your_Path is a path to OpenChart folder, for example : C:/ZakiProjects/OpenChart/include.

      don't forget to include openchart header in your source code:

      #include <openchart.h>

      This is a Simple Example :

      mychart = new OpenChart(this);
          QMap<QString,double> map;
      
          map["Zakaria"] = 7500.00;
          map["Sarra"] = 1200.00;
          map["Ali"] = 220.50;
          map["Mona"] = 640.24;
          map["Khadija"] = 1000.00;
          map["Said"] = 2000.00;
      
          mychart->setTitle("Fisr Example Charts by Zaki");
          mychart->setTipo(OpenChart::Sectores_2D);
      
          // Add items to your chart object
          QMap<QString, double>::iterator i;
            for (i = map.begin(); i != map.end(); ++i){
                mychart->addItem(i.key(),i.value());
                //mychart->addItem(i.key(),i.value(),Qt::gray);
            }
      
          // Add your chart object to layout
          ui->gridLayout->addWidget(mychart);

      my twitter : @Zaki_Chahboun

      Thanks to : 0THEFOX0 , DuarteCorporation Channel

openchart's People

Contributors

0thefox0 avatar zakaria-chahboun avatar

Watchers

 avatar

Forkers

kassane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.