Code Monkey home page Code Monkey logo

quickchart-pascal's Introduction







GIT docker c cplusplus

windows linux android

html5 css3 docker javascript

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors License Badge

program ProjectForeverAlive;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  IDeveloper = interface['{4E9E0CB0-49AC-4455-9CFA-D5E2724E9B80}']
  end;

  IMachine = interface['{9C45ADC2-08C2-4D9E-BEA3-BEE87AF7A718}']
  end;

  IHumam = interface(IMachine)['{BF7B51A1-2A23-4E9C-8FE4-B4EDB08BFF05}']
  function IsAlive: Boolean;
  end;

  THumam = class(TInterfacedObject, IHumam, IMachine, IDeveloper)
  private
    FName: String;
  public
    constructor Create(AName: String);
    procedure Start;
    function IsAlive: Boolean;
    property Name: String read FName;
  end;

{ THuman }

function THumam.IsAlive: Boolean;
const
  Forever = True;
begin
  Result := Forever;
end;

procedure THumam.Start;
begin
  while IsAlive do
  begin
    WriteLn( Format('%s: %s: %s',[FormatDateTime('YYYY/MM/DD - HH:MM:SS',Now), Name, 'another new idea...']) );
  end;
end;

constructor THumam.Create(AName: String);
begin
  inherited Create;
  FName := AName;
end;

begin
  THumam.Create('Joathan Theiller').Start;
end.

quickchart-pascal's People

Contributors

jtheiller avatar

Stargazers

 avatar

Watchers

 avatar

quickchart-pascal's Issues

Criar classe para tratar Chart API Parameters

  • chart: Javascript/JSON definition of the chart. Use a Chart.js configuration object. Abbreviated as "c"
  • width=500: Width of the image. Abbreviated as "w"
  • height=300: Height of the image. Abbreviated as "h"
  • devicePixelRatio=2.0: Device pixel ratio of the output (defaults to retina=2.0). Width and height are multiplied by this value.
  • backgroundColor=transparent: Background of the chart canvas. Accepts rgb (rgb(255,255,120)), colors (red), and URL-encoded hex values (%23ff00ff). Abbreviated as "bkg"
  • format=png: Format of your output. Supported output formats are PNG, WebP, SVG, and PDF. Abbreviated as "f"
  • encoding=url: Encoding of your "chart" parameter. Accepted values are url and base64.
  • version=2.9.4: Chart.js version. Defaults to latest 2.x.x. Setting version to 3 enables latest stable Chart.js v3 support (see documentation). Abbreviated as "v"

Implementar Grid Lines

As linhas de grade do gráfico são personalizáveis ​​definindo atributos em options.scales.<xAxes/yAxes>.gridLines . Esta configuração é muito flexível. Por exemplo, você pode alterar a cor, o tamanho e o estilo das linhas de grade (por exemplo, tornando-as pontilhadas ou tracejadas)

{
   "type":"bar",
   "data":{
      "labels":["Q1","Q2","Q3","Q4"],
      "datasets":[
         {
            "label":"Users",
            "data":[50,60,70,180]
         }
      ]
   },
   "options":{
      "scales":{
         "yAxes":[
            {
               "gridLines":{
                  "display":false
               }
            }
         ]
      }
   }
}

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.