Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Bar chart output format change

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
graph
1 Răspunde
9140 Vizualizări
Imagine profil
Prakash

Actualoutput.bmp Expectedoutput.bmp

Openerp 7 Graph view i want to shows the output In X-axis Month Y-axis No of Count (Ex: Procedure Performed count)

The below Query is used:-

select  
               row_number() over () as id,
               pm.name as procedure_performed, 
               count(pm.name) as count_performed, 
               to_char(invoice.procedure_date, 'MM') as month
               from patientprocedure invoice
               inner join procedureperformed_rel performed on performed.intake_id = invoice.id 
               left join proceduretypemaster pm on pm.id = performed.proceduretype_id
               group by 
               pm.name,
               to_char(invoice.procedure_date, 'MM')

In the bar chart output shows Count of Procedure Performed values combined with the month and differentiate with colors.

Instead of how to shows the count of Procedure Performed separate based on month?.

please find the Attached screen shot for more clear...

1
Imagine profil
Abandonează
sridhar

Hi Prakash, did you get any output for this problem.

Prakash
Autor

No not get exact solutions.

sridhar

did you get near by result???

Imagine profil
Prakash
Autor Cel mai bun răspuns

Folder: addons\web_graph\static\src\js\graph.js

  make_graph: function (mode, container, data) {
            if (mode === 'area') { mode = 'line'; }
            var format = this.get_format(this['options_' + mode](data));
            console.log("DATA", data.data);
           return Flotr.draw(container, data.data, format);
        },

Default Openerp above code is used to shows bar chart data value shows

Debug the data value it shows:-

data.data =  [{data:[[0,75]], label:"February"}, {data:[[0,400]], label:"March"}]  /* Both Month shows in same column */

After changing the data.data value into

data.data = [{data:[[0,75]], label:"February"},
                     {data:[[1,400]], label:"March"}];
/* Bar chart shows  different colour with separate column */**

But no idea about the above code changes js how to apply in dyamic in openerp ?

Let me know if any solution...

0
Imagine profil
Abandonează
sridhar

I think we have to do separate chart for this, Column chart is suitable for our problem. but i dont know how to do that. I dont have much knowledge in javascript.

Chandni Gandhi

Hi,

Facing the same issue. Help me out if you have the nearby solution. I have tried by overriding graphWidget but not working at all. Please give any hint to be resolved.

Chandni Gandhi

https://www.odoo.com/fr_FR/forum/aide-1/question/odoo-9-graph-widget-how-to-customise-the-bar-graph-111699

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
customize Bar Chart width in odoo10
graph
Imagine profil
0
iul. 21
2472
odoo graph multiple measures
graph
Imagine profil
Imagine profil
1
mai 20
8420
Remove interval with no data in graph view
graph
Imagine profil
0
apr. 20
3707
ODOO12 Graph clickable to lead to an action window
graph
Imagine profil
0
nov. 19
3222
In which xml file the code of the graph button is written?
graph
Imagine profil
Imagine profil
2
apr. 16
3948
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now