Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6657377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:45:38+00:00 2026-05-26T01:45:38+00:00

I need to visualize data for my trac Plugin. Therefore I want to use

  • 0

I need to visualize data for my trac Plugin. Therefore I want to use Open Flash Charts 2.
Trying to follow this didn’t quite work out as expected.

Question

The Chartdata won’t show, the only output is the loading-animation by OFC.
Everything looks similar too the html-source in the tutorial.

How can I load the JSON- Data into my chart?

Additional Information

I wrote a template where the processed data should be entered.

CHART_TEMPLATE = Template(
              '''
              <script type=\"text/javascript\" src=\"$json_path/json2.js\">
              </script>
              <script type=\"text/javascript\" src=\"$js_path/swfobject.js\">
              </script>
              <script type=\"text/javascript\">
              swfobject.embedSWF(\"$ofc_path/open-flash-chart.swf\", 
\"$chartname\", \"$width\", \"$height\", \"9.0.0\");

              function open_flash_chart_data()
              {
              alert('reading data');
              return JSON.stringify($json_chart_data);
              }

              function ofc_ready()
              {
              alert('ofc_ready');
              }
              </script>

              <div id=\"$chartname\"></div>
              '''
              )

The data is transformed to JSON with Open Flash Charts python, which seems to work well.

def chartdata_from_timetable(self, dict, title):
    '''
    creates chartdata in JSON-format from 2 dim dictionary

    '''
    elements = []
    x_labels = []
    dc = DateConversion.DateConversion()
    # if startdate on a weekend, startdate might 
    not be inluced in the dict->    
    choose next monday
    for key in timetable[startdate]:
        element = Chart()
        element.type = "line"
        element.text = key
        values = []
        for date in dict:
            values.append(dict[date][key])
            x_labels.append(string_from_date(date))
        element.values = values
        elements.append(element)
    chart = Chart()
    chart.x_axis.labels = x_labels
    chart.title.text = title
    chart.elements = elements
    return chart.create().encode()

Afterwards the following data is returned, none seems to be missing:

CHART_TEMPLATE.safe_substitute(js_path = config['js_dir'],...,
json_chart_data = chart_data)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:45:39+00:00Added an answer on May 26, 2026 at 1:45 am

    You have to check if the path of the ofc folder in trac.ini is right.
    The function chartdata_from_timetable is also not right. You only see the values of the last entry because of overwriting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to visualize data like in this spreadsheet https://docs.google.com/spreadsheet/ccc?key=0AhtsNUEmDE6MdE0ybXppcG1jampsVnBfZWpEZm9vbmc . So I would
I need to accurately visualize points coming from iPhone (and other) GPS data in
I have point clouds that I need to visualize, currently I use Pixel based
To visualize data from F# interactive console, I can do the following: open System.Windows.Forms
I need to visualize some data. It's basic 2D grid, where each cell have
I have a structure I need to visualize. It contains of a set of
I am producing graphs in a Python program, and now I need to visualize
I need to process DICOM formatted medical images and visualize them in 3D, also
Need some help about with Memcache. I have created a class and want to
I'm thinking about creating a tool to visualize scientific data on a website. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.